Left click macro
-
- Posts: 1
- Joined: 23 Mar 2021, 20:37
Left click macro
Hello, can someone make a simple macro for autohotkey that clicks the left click button once every x amount of seconds, as long as I am holding down the left click button? Help will be much appreciated, thanks in advance.
Re: Left click macro
Hallo,
either (only Clicks):or (Hold + Clicks)
either (only Clicks):
Code: Select all
*LButton::
SetTimer, TClick, 2000 ;every 2 seconds
TClick:
Click
Return
*LButton Up::SetTimer, TClick, Off
Code: Select all
~*LButton::SetTimer, TClick, 2000 ;every 2 seconds
TClick:
Click
Return
~*LButton Up::SetTimer, TClick, Off
Re: Left click macro
Then:
or shorter:
For the very first switch-on F2 sometimes must be tapped twice.
Code: Select all
~*LButton::SetTimer, TClick, 2000 ;every 2 seconds
TClick:
IF GetKeyState("F2","T") ;On/Off with F2
Click
Return
~*LButton Up::SetTimer, TClick, Off
Code: Select all
~*LButton::SetTimer, ~LButton & ~F2, 2000 ;every 2 seconds
~LButton & ~F2::Click,% GetKeyState("F2","T") ;On/Off with F2
~*LButton Up::SetTimer, ~LButton & ~F2, Off
Who is online
Users browsing this forum: Google [Bot], jameswrightesq and 112 guests