anonymous64561651

IS 4xUAC5 macro

Feb 4th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. #InstallMouseHook ;This line is needed for the script to get input from the mouse
  2. #InstallKeyBDHook ;This line is needed for the script to get keyboard input
  3.  
  4.  
  5. F12::Suspend ;This makes the "F12" key turn the script on and off as needed.
  6.  
  7. IfWinActive MechWarrior Online ;The actual "macro" is below and only works when our MWO window is active
  8. {
  9. LButton:: ;LButton means "Left mouse button" basically, whenever the left mouse button is pressed it will run the script
  10. while GetKeyState("LButton","P") ;while left mouse button is pressed, do whats within the opening and closing brackets
  11. {
  12. send {3 down} ;press the '4' key on the keyboard firing our weapon group 4
  13. sleep 230 ;wait 430 milliseconds
  14. send {3 up}
  15. send {4 down} ;press the '4' key on the keyboard firing our weapon group 4
  16. sleep 230 ;wait 430 milliseconds
  17. send {4 up} ;release the '4' key and then do the same for the '5' and '6' keys
  18. send {5 down}
  19. sleep 230
  20. send {5 up}
  21. send {6 down}
  22. sleep 230
  23. send {6 up}
  24. }
  25. Return ;make sure to always have this Return line at the end of your script
  26. }
Advertisement
Add Comment
Please, Sign In to add comment