Advertisement
Guest User

Untitled

a guest
May 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  2. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  3.  
  4. #NoEnv
  5. SendMode Input
  6.  
  7. ~Insert::Suspend
  8.  
  9. ~Home::ExitApp
  10.  
  11. ~Q & ~LButton::
  12. Loop
  13. If GetKeyState("LButton", "LCtrl&quot&quot"){
  14. Sleep, 2
  15. moveAmount := (moveAmount = 1) ? 1 : 0
  16. mouseXY(moveAmount,1)
  17.  
  18. }
  19. else
  20. break
  21.  
  22. Return
  23.  
  24.  
  25.  
  26. mouseXY(x,y)
  27. {
  28. DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement