Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. EnablePrimaryMouseButtonEvents(true)
  2.  
  3. function OnEvent(event, arg)
  4. if event == "MOUSE_BUTTON_PRESSED" and arg == 2 then
  5. RMB_Down = true
  6. elseif event == "MOUSE_BUTTON_RELEASED" and arg == 2 then
  7. RMB_Down = false
  8. elseif event == "MOUSE_BUTTON_PRESSED" and arg == 1 and RMB_Down then
  9. repeat
  10. MoveMouseRelative(0,2)
  11. Sleep(3)
  12. MoveMouseRelative(0,2)
  13. Sleep(3)
  14.  
  15. PressMouseButton(1)
  16. Sleep(1)
  17. ReleaseMouseButton(1)
  18. until not IsMouseButtonPressed(1)
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement