Page 1 of 1

Repeadetly jump when button is hold

Posted: 01 Oct 2019, 07:39
by erpetek
Hello,
Could somebody give me a script for pressing space when holding a button? When you release, it stops.
Thanks.

Re: Repeadetly jump when button is hold  Topic is solved

Posted: 01 Oct 2019, 15:58
by Dumitas
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

Re: Repeadetly jump when button is hold

Posted: 02 Oct 2019, 12:09
by erpetek
Thank you very much!