i want a script the spams spacebar
on/off - F3
activate - spacebar
so, if i hold down spacebar, the script has to spam spacebar.
if i turn it off by F3, i can hold spacebar down without the script acting.
i hope you understand, thanks
Best Answer Dilof , 22 February 2015 - 03:13 PM
i want a script the spams spacebar
on/off - F3
activate - spacebar
so, if i hold down spacebar, the script has to spam spacebar.
if i turn it off by F3, i can hold spacebar down without the script acting.
i hope you understand, thanks
*f3:: toggle := !toggle if (toggle) { SetTimer, Spam_Space, 10 } else { SetTimer, Spam_Space, Off } return Spam_Space: SendInput {Space} return
Change
SetTimer, Spam_Space, 10
to suit your needs.
If the game doesn't register it, use this instead:
Spam_Space: SendInput {Space Down} sleep, 5 SendInput {Space Up} return
Welcome, please make sure to hit Mark Solved on my post, so other people know it has been answered.
and how do i make it spam space, but less times, like, only 2-3 times / second, more rarely
Change SetTimer, Spam_Space, 10
.
This value is in milliseconds, so if you want space to be pressed twice a second, use SetTimer, Spam_Space, 500
.
so SetTimer, Spam_Space, 1 is the maximum of times it can be spammed?