Script to rapidly press space bar.

Ask gaming related questions (AHK v1.1 and older)
CheeseWheel8
Posts: 1
Joined: 21 Apr 2021, 16:31

Script to rapidly press space bar.

21 Apr 2021, 16:40

I have no idea where to start on this since I am very new to Auto Hot Key. I would like a script to rapidly press spacebar until I hit the key to toggle it on or off.
2kmentality
Posts: 16
Joined: 21 Apr 2021, 15:21

Re: Script to rapidly press space bar.

21 Apr 2021, 18:33

Try this. Just press spacebar to toggle rapidfire on/off. Hope it helps.

Code: Select all

#MaxThreadsperHotkey 2
~space::

Previouskey:= !PreviousKey

loop
{

if PreviousKey
{
sleep, 0
send, {space}
}
else

break

}
return 

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: sofista and 144 guests