How to toggle autofire on/off with same key?

Discussion, questions and support.
Post Reply
Imis
Posts: 1
Joined: Nov 4th, ’20, 09:31

Post by Imis » Nov 4th, ’20, 09:37

Hi guys,

I'm struggling with finding a way to toggle basically pressing space repeatedly on and off. I tried to use the ones in the library but I can't make it work.
Right now I use:

SetTimer, PressTheKey, 9000
Return
PressTheKey:
Send, {space}
Return

But this doesn't have the on/off option and I can't find it anywhere.
Essentially I would like to press say F12 and it auto press space until I press F12 again.

Thank you!
Post Reply