Advertisement
Guest User

Untitled

a guest
Jun 12th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; ------- Put the mouse right back to where you clicked --------
  2. ~f::
  3. WeaponDrawn := !WeaponDrawn
  4. Return
  5.  
  6. ~LButton::
  7. MouseGetPos, mouseX, mouseY
  8. Return
  9. ~LButton Up::
  10. If (!WeaponDrawn){
  11.     If (!GetKeyState("RButton", "P")){
  12.         ; This is so you can still use both mousebuttons to move without getting whiplash
  13.         MouseMove, mouseX, mouseY
  14.         }
  15.     }
  16. Return
  17.  
  18. ~RButton::
  19. MouseGetPos, mouseX, mouseY
  20. Return
  21. ~RButton Up::
  22. If (!GetKeyState("LButton", "P")){
  23.     ; This is so you can still use both mousebuttons to move without getting whiplash
  24.     MouseMove, mouseX, mouseY
  25.     }
  26. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement