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
hotstring of 5 left mouse clicks
Re: hotstring of 5 left mouse clicks
Hey,
I Hope this will help you...
I Hope this will help you...
Code: Select all
global ClickCount := 0
~LButton::
ClickCount++
if(ClickCount == 5){
Send r
ClickCount := 0
}
return
Re: hotstring of 5 left mouse clicks
Has been answered in this thread: https://autohotkey.com/boards/viewtopic ... 58#p205758
I am your average ahk newbie. Just.. a tat more cute.