Add micmute.ahk

This commit is contained in:
Efi Jovanovic 2024-05-21 13:25:40 +02:00
parent fd500e56eb
commit 620e313f52

21
micmute.ahk Normal file
View file

@ -0,0 +1,21 @@
; Initialize variables
micMuted := false
; Set up the hotkey
#ScrollLock::
; Toggle microphone mute/unmute
micMuted := !micMuted
; Run SoundVolumeView command to mute/unmute microphone by name (adjust as needed)
if (micMuted)
Run, svcl.exe /Unmute "YOUR MIC NAME HERE", , Hide
else
Run, svcl.exe /Mute "YOUR MIC NAME HERE", , Hide
; Toggle Scroll Lock LED based on microphone mute state
if (micMuted)
SetScrollLockState, Off
else
SetScrollLockState, On
return