Code: Select all
Loop {
WinWait, Quick Add
SoundGet, master_mute, , mute ; this will check if volume is muted or therwise
if ( master_mute == "On" )
SoundSet, +1,, mute ; this will unmute
SoundSet, 60
SoundBeep, 1400, 5000 ; Play a higher pitch for half a second
WinWaitClose, Quick Add
SoundSet, -50,, mute ; this will mute
}
Return
Any assistance is appreciated.
Nested loop?