Triksterism

[EVE] Easy Smartbomb (F1->F8)

Oct 22nd, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #NoEnv
  2. SendMode Input
  3. #IfWinActive, EVE - YourCharacterName
  4.  
  5. F12::
  6. Suspend, permit
  7. if (State = 0) ; Checks the current state of variable "State". And if it is False (zero)...
  8. {
  9. SoundPlay, %A_WinDir%\Media\Speech On.wav
  10. State++ ; And changes the value of variable "State" to True (one).
  11. }
  12. Else ; Otherwise...
  13. {
  14. State := 0 ; Sets the value of State variable to False (zero)
  15. SoundPlay, %A_WinDir%\Media\Speech Off.wav
  16. }
  17. Suspend, Toggle ; In both cases suspend is toggled, but due to the overall logic of the routine, it is toggled to On whenever State was zero and off whenever it was one.
  18. Return
  19.  
  20. $f1::
  21. Loop, 8
  22. { Send, {f%A_Index%}
  23. Sleep, 100
  24. }
  25. Return
Add Comment
Please, Sign In to add comment