Rapid fire only if another key is held down

Ask gaming related questions (AHK v1.1 and older)
xinzoe
Posts: 1
Joined: 19 Jan 2018, 02:38

Rapid fire only if another key is held down

19 Jan 2018, 02:46

I want a script that will rapid fire left click when I hold down the Left Mouse Button but only works if I hold down SHIFT key as well.

Here's what I have:

~$LButton::
While GetKeyState("LButton", "P"){
Click
Sleep 5 ; milliseconds
}
return

I just need it to detect if SHIFT is held down to work
User avatar
eventhorizon
Posts: 158
Joined: 27 Oct 2016, 14:22

Re: Rapid fire only if another key is held down

20 Jan 2018, 07:20

See if this works for you...

Code: Select all

$+LButton::
	while (1)
	{	s := GetKeyState("LShift","p")
		b := GetKeyState("LButton","p")
		if (s && b)
		{	Click Left
			Sleep, 10
		}
		else
		{	break
		}
	}
	return
	
A computer lets you make more mistakes faster than any invention in human history – with the possible exceptions of handguns and tequila.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 34 guests