Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnEvent(event, arg)
- --OutputLogMessage("event = %s, arg = %s\n", event, arg);
- -- open a cargo/corpse, press loot all, and exit corpse
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
- PressAndReleaseKey("t")
- Sleep(250)
- MoveMouseTo( 52489, 9232)
- PressAndReleaseMouseButton(1)
- PressAndReleaseKey("t")
- end
- -- Cargo is already open, loot all and exit
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 10) then
- MoveMouseTo( 52489, 9232)
- PressAndReleaseMouseButton(1)
- PressAndReleaseKey("t")
- end
- -- use this code between this and the below dashed line to find screen coordinates
- -- Click your mouse on the location and it will show up in the gray output window below
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
- x, y = GetMousePosition();
- OutputLogMessage("Mouse is at %d, %d\n", x, y);
- end
- -- You can delete the code between this and the above green
- -- "Click your mose" comment if you no longer need to find coordinates
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement