Toggle key script

Post your working scripts, libraries and tools for AHK v1.1 and older
XPRT
Posts: 1
Joined: 17 Sep 2017, 09:19

Toggle key script

17 Sep 2017, 09:34

Was reading few script topics with uncertain toggle script codes, and simplifying..

• X are the customizables values, sleep,x is the time in milliseconds that the key sleeps

f9:: suspend
*$space::
while (getkeystate("space", "p"))
send,{space}
sleep,0
return

--

x:: suspend
*$x::
while (getkeystate("x", "p"))
send,{x}
sleep,x
return

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 83 guests