View Single Post
Old 10-23-2019, 10:29 AM   #548
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,844
Default

Quote:
Originally Posted by babag View Post
i also have some buttons set to reaper native actions and they do not crash the script when clicked. any thoughts on this? does this not work with custom actions?

here's an offending custom action as listed in the script:
Code:
{ label = "REPLACE\nw1000ms", command = _fad0ff7281777ae665363b96d96f1651 },
and here's one that works:
Code:
{ label = "XFADE\nTOGGLE",    command = 40912 },
Hi babag,

For custom action command id strings, use
Quote:
reaper.Main_OnCommand(reaper.NamedCommandLookup("_fad0ff7281777ae665363b 96d96f1651"), 0)
instead of
Quote:
reaper.Main_OnCommand(40912 , 0)
for native action IDs.
__________________
ReaLauncher
solger is offline   Reply With Quote