Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #NoEnv
- SendMode Input
- ~Insert::Suspend
- ~Home::ExitApp
- ~Q & ~LButton::
- Loop
- If GetKeyState("LButton", "LCtrl"""){
- Sleep, 2
- moveAmount := (moveAmount = 1) ? 1 : 0
- mouseXY(moveAmount,1)
- }
- else
- break
- Return
- mouseXY(x,y)
- {
- DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement