Repeadetly jump when button is hold Topic is solved

Ask gaming related questions (AHK v1.1 and older)
erpetek
Posts: 8
Joined: 22 Aug 2019, 12:55

Repeadetly jump when button is hold

01 Oct 2019, 07:39

Hello,
Could somebody give me a script for pressing space when holding a button? When you release, it stops.
Thanks.
User avatar
Dumitas
Posts: 167
Joined: 14 Dec 2017, 21:32

Re: Repeadetly jump when button is hold  Topic is solved

01 Oct 2019, 15:58

This script send space bar while you hold it, you can change the hotkey on the first line and then on GetKeyState

Code: Select all

$Space:: ;Use space as the hotkey
While (GetKeyState("Space","P"))
{
	Send {Space down}
	Sleep 50
	Send {Space up}
	Sleep 50
}
Return
Image
erpetek
Posts: 8
Joined: 22 Aug 2019, 12:55

Re: Repeadetly jump when button is hold

02 Oct 2019, 12:09

Thank you very much!

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: prototype_zero and 25 guests