View Single Post
Old 12-29-2017, 03:15 PM   #14
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

Quote:
Originally Posted by tXShooter View Post
How would one implement a Command ID from AutoHotKey that is a custom action?

For example, I created a custom action that results in an Command ID: _11b6e22e7a1f72468b2b411c9f16de08
You can use reaper.NamedCommandLookup( command_name )

https://www.extremraym.com/cloud/rea...dCommandLookup

Something like this:
Code:
commandId = reaper.NamedCommandLookup("_11b6e22e7a1f72468b2b411c9f16de08")
reaper.Main_OnCommand(commandId,0)
or as a one-liner
Code:
reaper.Main_OnCommand(reaper.NamedCommandLookup("_11b6e22e7a1f72468b2b411c9f16de08"),0)

Last edited by nofish; 12-29-2017 at 03:22 PM.
nofish is offline   Reply With Quote