Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- SendMode Input
- #IfWinActive, EVE - YourCharacterName
- F12::
- Suspend, permit
- if (State = 0) ; Checks the current state of variable "State". And if it is False (zero)...
- {
- SoundPlay, %A_WinDir%\Media\Speech On.wav
- State++ ; And changes the value of variable "State" to True (one).
- }
- Else ; Otherwise...
- {
- State := 0 ; Sets the value of State variable to False (zero)
- SoundPlay, %A_WinDir%\Media\Speech Off.wav
- }
- 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.
- Return
- $f1::
- Loop, 8
- { Send, {f%A_Index%}
- Sleep, 100
- }
- Return
Add Comment
Please, Sign In to add comment