Hold LMB while tapping RMB every 2 seconds Topic is solved

Ask gaming related questions (AHK v1.1 and older)
iLukey96
Posts: 3
Joined: 03 Jul 2020, 13:00

Hold LMB while tapping RMB every 2 seconds

Post by iLukey96 » 18 Aug 2022, 06:15

Hello, please could somebody help me with the following;

I want to be able to press F1 to start and to stop the command that holds down LMB while pressing RMB every 2 seconds until F1 is pressed to stop

Thanks.

User avatar
mikeyww
Posts: 26931
Joined: 09 Sep 2014, 18:38

Re: Hold LMB while tapping RMB every 2 seconds  Topic is solved

Post by mikeyww » 18 Aug 2022, 06:39

Code: Select all

F1::SetTimer, F1 Up, % (on := !on) ? 2000 : "Off"
F1 Up::Send % on ? "{LButton down}{RButton}{LButton up}" : ""

iLukey96
Posts: 3
Joined: 03 Jul 2020, 13:00

Re: Hold LMB while tapping RMB every 2 seconds

Post by iLukey96 » 18 Aug 2022, 07:08

mikeyww wrote:
18 Aug 2022, 06:39

Code: Select all

F1::SetTimer, F1 Up, % (on := !on) ? 2000 : "Off"
F1 Up::Send % on ? "{LButton down}{RButton}{LButton up}" : ""
Thank you very much!

Post Reply

Return to “Gaming Help (v1)”