Code: Select all
mutemic()
{
SoundSet, +1, MASTER, mute,11
SoundGet, master_mute, MASTER, mute, 11
Sleep, 100
if master_mute = on
KeyboardLED(1,"on")
else
KeyboardLED(0,"off")
}
Return
It starts the way I want it to, it mutes the mic and starts the light blinking, but because it's now stuck in the loop it won't look for the off command.
Code: Select all
mutemic()
{
SoundSet, +1, MASTER, mute,11
SoundGet, master_mute, MASTER, mute, 11
Sleep, 100
if master_mute = on
{
Loop
{
KeyboardLED(1,"on") ;
Sleep, 500
KeyboardLED(1,"off")
Sleep, 500
}
}
else
KeyboardLED(0,"off")
}
Return
Thanks in advance,