Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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.
- Insert:: Hotkey, ~LButton, Toggle
- ; SS
- 9::Suspend
- ~Lbutton::
- ~Rbutton::
- While ((L:=GetKeyState("LButton","P")) + (R:=GetKeyState("RButton","P"))){
- If (L && R)
- {
- DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0)
- Sleep, 5
- DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0)
- Sleep, 5
- }
- else if L
- {
- DllCall("mouse_event", uint, 0, int, 0, int, 0, uint, 0, int, 0)
- Sleep, 0
- DllCall("mouse_event", uint, 0, int, 0, int, 0, uint, 0, int, 0)
- Sleep, 0
- }
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement