Last active
March 24, 2021 19:10
-
-
Save mtimkovich/aa26eedfaae20032c6697dd1217db9a6 to your computer and use it in GitHub Desktop.
Keyboard shortcut to mute the mic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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