F3::Goto, ToggleMic...
SoundGet, microphone_mute, Microphone, Mute if (microphone_mute = "Off") MsgBox, The microphone is not muted.
#SingleInstance force
; Set the key binding
F3::ToggleMic
; The mic toggle function
ToggleMic:
SoundGet, mic_state, , MIC, MUTE
if mic_state = "On"
{
SoundSet, , MIC, MUTE, 1
TrayTip, Mic, Mic is now off, 1, 16
}
else
{
SoundSet, , MIC, MUTE, 0
TrayTip, Mic, Mic is now on, 1, 16
}
Return