Skip to content

Instantly share code, notes, and snippets.

@mtimkovich

mtimkovich/MuteMic.ahk

Last active Mar 24, 2021
Embed
What would you like to do?
Keyboard shortcut to mute the mic.
; https://www.autohotkey.com/docs/commands/SoundSet.htm#Ex
F13::
MIC_ID = 7
SoundSet, +1, MASTER, mute, %MIC_ID%
SoundGet, master_mute, , mute, %MIC_ID%
Msg := "Microphone online"
Action := "Insert"
if (master_mute == "On") {
Msg := "Microphone muted"
Action := "Remove"
}
SoundPlay, %A_WinDir%\Media\Windows Hardware %Action%.wav
TrayTip, , %Msg%, 20, 17
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment