Rapid fire while both mouse buttons are held down

Post gaming related scripts
Hitaku
Posts: 17
Joined: 14 Mar 2017, 00:57

Rapid fire while both mouse buttons are held down

18 Feb 2019, 17:44

Looking to make the script below work only when both the left and right mouse buttons are held down together. Not quite sure how to do it, any help would be appreciated.

LButton::
KeyWait, LButton, T1
SetMouseDelay 20
While GetKeyState("LButton","P"){
Click
Click, right
}
return


Edit: Turns out it was a pretty simple fix. Changing it to "LButton & RButton::" seemed to get the job done.
_3D_
Posts: 277
Joined: 29 Jan 2014, 14:40

Re: Rapid fire while both mouse buttons are held down

22 Feb 2019, 10:12

AHKv2.0

Code: Select all

~LButton::
~RButton::
	while(getKeyState("LButton", "P") && getKeyState("RButton", "P")) {
		Send("F")
		Sleep(50)
	}
return	
#!Q::ExitApp
Enjoy!
AHKv2.0 alpha forever.

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 51 guests