Whenever i press "a,d,w" or any other key the script stops spamming spacebar Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Imstegix
Posts: 1
Joined: 01 Apr 2020, 16:12

Whenever i press "a,d,w" or any other key the script stops spamming spacebar

01 Apr 2020, 16:26

Here is the Code i use, i set the * before space to disable "major" keys like ctrl or shift e.t.c but the script still stops spamming space when any other key is pressed, If anyone could help me stop this from happening and me being able to keep spamming space and other keys i would appreciate!

Code: Select all

F1::                 
	Suspend
	Return
*space::
	Loop                                                                                                                
	{
		GetKeyState,state,space,P
		If state = U
			Break
		Send,{space}              
		Sleep,20
	}  
Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Whenever i press "a,d,w" or any other key the script stops spamming spacebar  Topic is solved

02 Apr 2020, 03:02

Hallo,
spamming does not stop here.
But maybe this?:

Code: Select all

F1::
Suspend
Return
$*space::SetTimer, TSpace, 20
$*space Up::SetTimer, TSpace, Off
TSpace:
SendInput, {Blind}{Space}
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 105 guests