Add micmute.ahk
This commit is contained in:
parent
fd500e56eb
commit
620e313f52
21
micmute.ahk
Normal file
21
micmute.ahk
Normal 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
|
Loading…
Reference in a new issue