Code: Select all
#if getkeystate("LShift","P")
1 & W::Suspend, Off
W & 1::Suspend, Off
#if
#if getkeystate("LShift","P")
2 & W::Suspend, On
W & 2::Suspend, On
#if
The situation in which it doesn't work is when you press LShift, then press 1, then press W. It begins to flick between suspend and resume over and over again. This doesn't happen when 2 is pressed or in the reversed orders.
Does this script behave like this for anyone else?
What changes have to be made to have LShift + 1/W + W/1 suspend, but not resume over and over again?
Is there an easier way to have multiple key combinations suspend and resume scripts, if so, how?
Any insight would be greatly appreciated thank you!