Advertisement
Guest User

Untitled

a guest
Sep 12th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5. Insert:: Hotkey, ~LButton, Toggle
  6. ; SS
  7. 9::Suspend
  8.  
  9. ~Lbutton::
  10.  
  11. ~Rbutton::
  12.  
  13. While ((L:=GetKeyState("LButton","P")) + (R:=GetKeyState("RButton","P"))){
  14.  
  15. If (L && R)
  16.  
  17. {
  18. DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0)
  19. Sleep, 5
  20. DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0)
  21. Sleep, 5
  22. }
  23.  
  24. else if L
  25.  
  26. {
  27. DllCall("mouse_event", uint, 0, int, 0, int, 0, uint, 0, int, 0)
  28. Sleep, 0
  29. DllCall("mouse_event", uint, 0, int, 0, int, 0, uint, 0, int, 0)
  30. Sleep, 0
  31. }
  32.  
  33. }
  34.  
  35. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement