anonymous64561651

4xAC10 autohotkey script

Aug 29th, 2014
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 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 {5 down} ;press the '4' key on the keyboard firing our weapon group 4
  13. sleep 450 ;wait 626 milliseconds
  14. send {5 up}
  15. send {4 down} ;press the '4' key on the keyboard firing our weapon group 4
  16. sleep 450 ;wait 626 milliseconds
  17. send {4 up} ;release the '4' key and then do the same for the '5' and '6' keys
  18. }
  19. Return ;make sure to always have this Return line at the end of your script
  20. }
Advertisement
Add Comment
Please, Sign In to add comment