Advertisement
Guest User

roost

a guest
Apr 30th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #NoEnv
  2. SendMode Play
  3.  
  4. Q::Suspend
  5.  
  6. ~LButton::
  7. Loop
  8. IfWinActive, Rust
  9. {
  10. If GetKeyState("LButton") {
  11. Sleep, 1
  12. moveAmount := (moveAmount = 2) ? 3 : 0
  13. mouseXY(moveAmount,2.5)
  14. }
  15. else
  16. break
  17. }
  18.  
  19. LCtrl & ~LButton::
  20. Loop
  21. IfWinActive, Rust
  22. {
  23. If GetKeyState("LButton", "LCtrl") {
  24. Sleep, 1
  25. moveAmount := (moveAmount = 2) ? 3 : 0
  26. mouseXY(moveAmount,3)
  27. }
  28. else
  29. break
  30. }
  31.  
  32. LShift & ~LButton::
  33. Loop
  34. IfWinActive, Rust
  35. {
  36. If GetKeyState("LButton", "LShift") {
  37. Sleep, 1
  38. moveAmount := (moveAmount = 2) ? 3 : 0
  39. mouseXY(moveAmount,3)
  40. }
  41. else
  42. break
  43. }
  44.  
  45. Return
  46.  
  47. mouseXY(x,y)
  48. {
  49. DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement