View Single Post
Old 01-29-2020, 06:31 AM   #931
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Found it!


Just this code outside of the defer:
Code:
for i = 60, 0, -4  do
  modifiers = reaper.JS_Mouse_GetState(i)
  if modifiers ~= 0 then break end
end
And this inside:
Code:
reaper.JS_Mouse_GetState(modifiers) == modifiers
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote