Skip to content

Instantly share code, notes, and snippets.

@mtimkovich
Last active March 24, 2021 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtimkovich/aa26eedfaae20032c6697dd1217db9a6 to your computer and use it in GitHub Desktop.
Save mtimkovich/aa26eedfaae20032c6697dd1217db9a6 to your computer and use it in GitHub Desktop.
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