View Single Post
Old 05-14-2016, 01:28 PM   #36
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,020
Default

Well, once the button is able to clicked, you really just have to put whatever function you want inside the "clicked" part of the if/then statement.

If you look at the library demo in my post, and scroll down to Btn:onmouseup() you'll see that, in this case, it's just taking whatever function the user specified and running it. So if you knew the command ID from Reaper's action list you could use reaper.Main_OnCommand() to run it, etc.

Last edited by Lokasenna; 05-14-2016 at 09:30 PM.
Lokasenna is offline   Reply With Quote