add some more features
This commit is contained in:
parent
c118025c4d
commit
e0196aa30c
24
VB.ahk
24
VB.ahk
@ -132,7 +132,7 @@ Volume_Down::
|
||||
return
|
||||
|
||||
Volume_Mute::
|
||||
If (GetKeyState("Media_Stop")) ; Mutes all output, and Comms as well for good measure. Basically a kill switch
|
||||
If (GetKeyState("Media_Stop")) ; Mutes all output. Basically a kill switch
|
||||
{
|
||||
b0M := Round(readParam("Bus[0]" . ".Mute")) ; Speakers
|
||||
b1M := Round(readParam("Bus[1]" . ".Mute")) ; Headphones
|
||||
@ -162,17 +162,17 @@ Volume_Mute::
|
||||
}
|
||||
Return
|
||||
}
|
||||
cM := Round(readParam("Bus[0]" . ".Mute")) ; Toggles between the speakers and headphones being muted, normal operation
|
||||
cM := Round(readParam("Bus[1]" . ".Mute")) ; Toggles between the speakers and headphones being muted, normal operation
|
||||
if (cM)
|
||||
{
|
||||
adjustMute("Bus[0]" . ".Mute", "1") ; Speakers
|
||||
adjustMute("Bus[1]" . ".Mute", "0") ; Headphones
|
||||
}
|
||||
if !(cM)
|
||||
{
|
||||
adjustMute("Bus[0]" . ".Mute", "0") ; Speakers
|
||||
adjustMute("Bus[1]" . ".Mute", "1") ; Headphones
|
||||
}
|
||||
if !(cM)
|
||||
{
|
||||
adjustMute("Bus[0]" . ".Mute", "1") ; Speakers
|
||||
adjustMute("Bus[1]" . ".Mute", "0") ; Headphones
|
||||
}
|
||||
return
|
||||
|
||||
!m:: ; Mute: No audio out
|
||||
@ -201,16 +201,24 @@ Return
|
||||
}
|
||||
Return
|
||||
|
||||
!j:: ; Mute toggle for skype meeting on work laptop
|
||||
!j:: ; Mute toggle for meetings on work laptop
|
||||
Send {F24}
|
||||
cM := Round(readParam("Bus[2]" . ".Mute"))
|
||||
|
||||
if (cM)
|
||||
{
|
||||
adjustMute("Bus[2]" . ".Mute", "1") ; Work Laptop
|
||||
adjustMute("Bus[3]" . ".Mute", "0") ; Comms IN
|
||||
adjustMute("Strip[3]" . ".Mute", "0") ; Desktop
|
||||
Sleep, 650 ; Delay so that the "deafened" sound from discord can play
|
||||
adjustMute("Strip[4]" . ".Mute", "0") ; Comms OUT
|
||||
}
|
||||
if !(cM)
|
||||
{
|
||||
adjustMute("Bus[2]" . ".Mute", "0") ; Work Laptop
|
||||
adjustMute("Bus[3]" . ".Mute", "1") ; Comms IN
|
||||
adjustMute("Strip[4]" . ".Mute", "1") ; Comms OUT
|
||||
adjustMute("Strip[3]" . ".Mute", "1") ; Desktop
|
||||
}
|
||||
Return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user