need help with AHK script Topic is solved

Ask gaming related questions (AHK v1.1 and older)
uro
Posts: 2
Joined: 06 Mar 2018, 01:02

need help with AHK script

06 Mar 2018, 01:09

I'm pretty new to AHK and need someones help. I've looked all over the forum and can't seem to find out how to do this.

I need a script where if I hold down the Right Mouse Button it will lift up after "3" secconds then hold it again and repeat depending on if i'm hold down right mouse button. So only if I'm holding down R mouse button it takes breaks (rbutton up) every 3 seconds.
If that makes sense. lol
Thanks!
Rohwedder
Posts: 7623
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: need help with AHK script  Topic is solved

06 Mar 2018, 04:11

Hallo,
try:

Code: Select all

#InstallMouseHook
Return ;End of Auto-execute Section
RButton::
	Send, {RButton Down}
	SetTimer, RButtonUpDown, 3000
	KeyWait, RButton
	SetTimer, RButtonUpDown, Off
	Send, {RButton Up}
Return
RButtonUpDown:
	Send, {RButton Up}{RButton Down}
Return
uro
Posts: 2
Joined: 06 Mar 2018, 01:02

Re: need help with AHK script

07 Mar 2018, 03:19

thank you so much! that works great! :clap: :clap: :clap: :clap:

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 54 guests