Quote:
Originally Posted by Edgemeal
|
Thank you Edgemeal!!
Another question:
How can I know what key triggered the current script so that I can check if it is still being held down? For example I have set my script to work with mousewheel+Alt+Shift and have hard-coded in the script to check if Alt+Shift are being held (as julian showed me):
Code:
if reaper.JS_Mouse_GetState(24) == 24 then ... -- 8:Shift, 16:Alt
How could my script know the modifiers that triggered it without hard-coding it inside?
pseudo-code:
Code:
modifiers_that_triggered_script = xxxx
if reaper.JS_Mouse_GetState(modifiers_that_triggered_script ) == modifiers_that_triggered_script then