; Include general library #Include ../lib/Prelude.ahk ; Don't show a tray icon #NoTrayIcon ; Which device the microphone is ; Use third party AudioFinder script to figure this out Device := 9 MuteMic() { local MM SoundSet, +1, MASTER, MUTE, %Device% If ( ErrorLevel != 0 ) { MsgBox, Error: %ErrorLevel% } SoundGet, MM, MASTER, MUTE, %Device% #Persistent ToolTip, % (MM == "On" ? "Microphone muted" : "Microphone online") SetTimer, RemoveMuteMicTooltip, 700 return } RemoveMuteMicTooltip: SetTimer, RemoveMuteMicTooltip, Off ToolTip return ; ; Hotkey ; ^Home::MuteMic()