hotstring of 5 left mouse clicks

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
thankyou
Posts: 5
Joined: 23 Jan 2018, 19:17

hotstring of 5 left mouse clicks

13 Mar 2018, 01:46

i need it to wait until i click the right mouse button 5 times, on the 5th click i would like it to run the script

this is one of my failed scripts it should give you an idea of what i want it to do

:*:*Lbutton*Lbutton*Lbutton*Lbutton*Lbutton::
sleep, 500
send r
*$~r:: reload
return

its for a shooting game where after 5 shots my clip is empty and i need to press r to reload gun. so basically it counts how many bullets ive shot.

a problem is that i will also be holding down other keys while im clicking.

what might be another problem is that i have other scripts also using mouse clicks

the script would be dead easy if the shoot button was a key. for example if shoot was f then it would be:

:*:fffff::
send r
*$~r:: reload
return
User avatar
Renz
Posts: 20
Joined: 05 Sep 2015, 21:56
Location: Dortmund (NRW|GER)
Contact:

Re: hotstring of 5 left mouse clicks

13 Mar 2018, 15:45

Hey,

I Hope this will help you...

Code: Select all

global ClickCount := 0

~LButton::
ClickCount++
if(ClickCount == 5){
	Send r
	ClickCount := 0
}
return
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: hotstring of 5 left mouse clicks

14 Mar 2018, 01:50

I am your average ahk newbie. Just.. a tat more cute. ;)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: jaka1, mikeyww, ReyAHK and 318 guests