View Single Post
Old 10-23-2019, 11:31 AM   #549
babag
Human being with feelings
 
Join Date: Nov 2009
Posts: 2,232
Default

thanks, solger. not sure how to use that with the 'v.command' variable that lokasenna suggested. tried this:
Code:
function() reaper.Main_OnCommand(reaper.NamedCommandLookup(v.command), 0) end
tried with and without quotes around v.command. in either case i get crashing. if i paste a command id directly, as in your example, it works. looks like i have something wrong in syntax for the variable?

edit:
spoke too soon. looks like replacing this:
Code:
  { label = "REPLACE\nw1000ms", command = _fad0ff7281777ae665363b96d96f1651 },
with this:
Code:
  { label = "REPLACE\nw1000ms", command = "_fad0ff7281777ae665363b96d96f1651" },
makes it work. i'm guessing that's because the underscore at the start of the id necessitates quotes?

thanks again,
babag

Last edited by babag; 10-23-2019 at 11:39 AM.
babag is offline   Reply With Quote