Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input
- ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir%
- ; Ensures a consistent starting directory.
- ; The rest of these are reliability tweaks
- #MaxThreadsPerHotkey 2
- #InstallKeybdHook
- #UseHook On
- Delay=85
- ; The delay between clicks, in milliseconds. Recommend not to go under 50.
- `:: t := !t
- ; Tilde toggles if 't' is true or false, false by default
- return
- *$LShift:: Send {LShift down}
- *$LControl:: Send {LControl down}
- *$LShift Up:: Send {LShift up}
- *$LControl Up:: Send {LControl up}
- ; Because, for some reason, Control and Shift would get spammed along with LMB if pressed while the script is active.
- $~*LButton::
- While GetKeyState("LButton","p") and (t = true)
- ; While toggle is on and LMB is held
- {
- Send {Click}
- ; Raw click sent cuz compatibility or reliability or something
- Sleep Delay
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement