Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. $LButton::
  2. KeyWait LButton, T0.05 ; Wait 1/2 second for user to release "a" key
  3. If ErrorLevel ; Still held down
  4. While GetKeyState("LButton","p"){ ; While it is held down
  5. Click
  6. Sleep 20
  7. }
  8. Else ; They let go in time
  9. Click
  10. return
  11.  
  12. ;$RButton::
  13. ; KeyWait RButton, T0.05 ; Wait 1/2 second for user to release "a" key
  14. ; If ErrorLevel ; Still held down
  15. ; While GetKeyState("RButton","p"){ ; While it is held down
  16. ; MouseClick, right
  17. ; Sleep 20
  18. ; }
  19. ; Else ; They let go in time
  20. ; MouseClick, right
  21. ;return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement