View Single Post
Old 01-28-2020, 04:49 AM   #926
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

How to know if particular keys are being held down during defer?


Example/pseudo code:
Code:
function main()
  --[[
  OK = check if alt + shift are being pressed
  --]]
  if OK then
    reaper.defer(main)
  else
    reaper.ShowConsoleMsg("You released Alt+Shift")
    return
  end
end
__________________
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