Page 1 of 1

Re: How can I make a script that presses the f key as fast as possible as long as I press f4?  Topic is solved

Posted: 20 Sep 2021, 10:17
by Ianizer

Code: Select all

SetBatchLines, -1

F4::
	while (GetKeyState("F4", "P"))
		SendInput, f
return

Re: How can I make a script that presses the f key as fast as possible as long as I press f4?

Posted: 20 Sep 2021, 12:12
by Ianizer

Code: Select all

SetBatchLines, -1

*Q:: ;an asterisk is needed to fire the hotkey with other modifiers
	while (GetKeyState("Q", "P"))
		SendInput, f
return
[code]