AutoHotkey scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
622 B

; 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()