Toggle key script

Post your working scripts, libraries and tools
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”

Who is online

Users browsing this forum: burque505, Phap Nguyen and 16 guests