But, my sound only plays (when remoted in) when I press enter AFTER the 'Item not Found!' box appears.
Any ideas?
Thanks
Code: Select all
Loop {
#IfWinActive, Item Not Found!
$Enter::
$NumPadEnter::
SoundGet, master_mute, , mute ; this will check if volume is muted or therwise
if ( master_mute == "On" )
SoundSet, +1, , mute ; this will unmute
SoundSet +100
SoundPlay, C:\POS\AHK\Noise.wav
WinWaitClose, Item Not Found!
SoundPlay, C:\POS\AHK\Nonexistent.wav
SoundSet, -1, , mute ; this will mute
Break
}
Return