Script for multiple space bar presses.

Ask gaming related questions (AHK v1.1 and older)
Hitaku
Posts: 17
Joined: 14 Mar 2017, 00:57

Script for multiple space bar presses.

22 Aug 2017, 15:25

Looking for a script that will send space bar 4 times if I hold it down for .5 seconds. Seems simple enough, but I'm not quite sure how to do it. Any help would be very appreciated.
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: Script for multiple space bar presses.

27 Aug 2017, 11:43

Hi Here is the code but Space dont work you need to hold a key to send 4 times space

Code: Select all

F::	;Here can you change which key you want pressed to send space.
Keywait, F, n,T5.0	;By "5.0" can you change the time how long you want presed to send 1.0 = 1 sec

If ErrorLevel

   	Send, {Space}	;Here can you change what you want get send.
	Sleep, 10

	Send, {Space}
	Sleep, 10

	Send, {Space}
	Sleep, 10

	Send, {Space}
	Sleep, 10

return
Hitaku
Posts: 17
Joined: 14 Mar 2017, 00:57

Re: Script for multiple space bar presses.

29 Aug 2017, 22:07

Thank you very much. =)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 99 guests