Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EnablePrimaryMouseButtonEvents(true)
- function OnEvent(event, arg)
- if event == "MOUSE_BUTTON_PRESSED" and arg == 2 then
- RMB_Down = true
- elseif event == "MOUSE_BUTTON_RELEASED" and arg == 2 then
- RMB_Down = false
- elseif event == "MOUSE_BUTTON_PRESSED" and arg == 1 and RMB_Down then
- repeat
- MoveMouseRelative(0,2)
- Sleep(3)
- MoveMouseRelative(0,2)
- Sleep(3)
- PressMouseButton(1)
- Sleep(1)
- ReleaseMouseButton(1)
- until not IsMouseButtonPressed(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement