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.
|