Rapid Fire on LMB hold +Ctrl doesnt pass Ctrl Topic is solved

Ask gaming related questions (AHK v1.1 and older)
QuantumD0T
Posts: 7
Joined: 07 Jan 2018, 18:39

Rapid Fire on LMB hold +Ctrl doesnt pass Ctrl

05 Mar 2018, 23:45

Hi. I have this:

Code: Select all

~lbutton::
	While GetKeyState("lbutton","P")
	{ ; While it is held down
	KeyWait lbutton, T2                 ; Wait 2 seconds for user to release key
    	If ErrorLevel                   ; Still held down

		While GetKeyState("LCtrl","P")
		{
			send, {lbutton down}
			RandSleep(55,85) ;sleep a random length of time
			send, {lbutton up}
			RandSleep(50,80) ;sleep a random length of time
		}
	}
	

return

RandSleep(x,y)
{
	Random, rand, %x%, %y%
	Sleep %rand%
}
Problem is that the Ctrl is not getting passed on. Is there a easy way to fix it?
Rohwedder
Posts: 7625
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Rapid Fire on LMB hold +Ctrl doesnt pass Ctrl  Topic is solved

06 Mar 2018, 05:11

Hallo,
try:

Code: Select all

While GetKeyState("LCtrl","P")
{
	send, {Blind}{lbutton down}
	RandSleep(55,85) ;sleep a random length of time
	send, {Blind}{lbutton up}
	RandSleep(50,80) ;sleep a random length of time
}
QuantumD0T
Posts: 7
Joined: 07 Jan 2018, 18:39

Re: Rapid Fire on LMB hold +Ctrl doesnt pass Ctrl

06 Mar 2018, 12:23

it works! Thanks a bunch. I learned a lot from this tiny script.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Gemos and 103 guests