Code: Select all
LButton::
sleep 1
Send {RButton down}
Sleep 150
Send {RButton up}
return
[Mod edit: Moved topic to AHK v1 help, based on the posted code (not v2!).]
Code: Select all
LButton::
sleep 1
Send {RButton down}
Sleep 150
Send {RButton up}
return
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey, 255
LButton::
SetTimer, Timer_1, Off
counter:=0
SetTimer, Timer_1, -25
return
Timer_1:
counter++
If counter=1
{
Send {RButton down}
SetTimer, Timer_1, -175
}
else if counter=2
{
Send {RButton up}
SetTimer, Timer_1, Off
}
return
*F2::
Suspend ;Suspend Hotkeys off/on
Pause,, 1 ;Pause Script off/on