Fix errors, add way to control music volume when scroll lock is on
This commit is contained in:
parent
d72e230306
commit
32aac7868f
23
VB.ahk
23
VB.ahk
@ -65,7 +65,7 @@ Volume_Up::
|
||||
cLvl := readParam("Strip[2]" . ".Gain")
|
||||
if (cLvl != "")
|
||||
{
|
||||
cLvl += 2
|
||||
cLvl += 1
|
||||
adjustVolLvl("Strip[2]" . ".Gain", cLvl)
|
||||
}
|
||||
Return
|
||||
@ -79,7 +79,7 @@ Volume_Up::
|
||||
cLvl := readParam("Bus[0]" . ".Gain")
|
||||
if (cLvl != "")
|
||||
{
|
||||
cLvl += 2
|
||||
cLvl += 1
|
||||
adjustVolLvl("Bus[0]" . ".Gain", cLvl)
|
||||
}
|
||||
}
|
||||
@ -89,7 +89,7 @@ Volume_Up::
|
||||
cLvl := readParam("Bus[1]" . ".Gain")
|
||||
if (cLvl != "")
|
||||
{
|
||||
cLvl += 2
|
||||
cLvl += 1
|
||||
adjustVolLvl("Bus[1]" . ".Gain", cLvl)
|
||||
}
|
||||
}
|
||||
@ -101,7 +101,7 @@ Volume_Down::
|
||||
cLvl := readParam("Strip[2]" . ".Gain")
|
||||
if (cLvl != "")
|
||||
{
|
||||
cLvl -= 2
|
||||
cLvl -= 1
|
||||
adjustVolLvl("Strip[2]" . ".Gain", cLvl)
|
||||
}
|
||||
Return
|
||||
@ -115,7 +115,7 @@ Volume_Down::
|
||||
cLvl := readParam("Bus[0]" . ".Gain")
|
||||
if (cLvl != "")
|
||||
{
|
||||
cLvl -= 2
|
||||
cLvl -= 1
|
||||
adjustVolLvl("Bus[0]" . ".Gain", cLvl)
|
||||
}
|
||||
}
|
||||
@ -125,7 +125,7 @@ Volume_Down::
|
||||
cLvl := readParam("Bus[1]" . ".Gain")
|
||||
if (cLvl != "")
|
||||
{
|
||||
cLvl -= 2
|
||||
cLvl -= 1
|
||||
adjustVolLvl("Bus[1]" . ".Gain", cLvl)
|
||||
}
|
||||
}
|
||||
@ -178,8 +178,16 @@ return
|
||||
!m:: ; Mute: No audio out
|
||||
Send {F23}
|
||||
b3M := Round(readParam("Bus[3]" . ".Mute")) ; Comms IN
|
||||
s4M := Round(readParam("Strip[4]" . ".Mute")) ; Comms OUT
|
||||
|
||||
if !(b3M)
|
||||
If (s4M)
|
||||
{
|
||||
adjustMute("Bus[3]" . ".Mute", "1") ; Comms IN
|
||||
adjustMute("Strip[4]" . ".Mute", "1") ; Comms OUT
|
||||
return
|
||||
}
|
||||
|
||||
If !(b3M)
|
||||
{
|
||||
adjustMute("Bus[3]" . ".Mute", "0")
|
||||
} else {
|
||||
@ -197,6 +205,7 @@ Return
|
||||
adjustMute("Strip[4]" . ".Mute", "1") ; Comms OUT
|
||||
} else {
|
||||
adjustMute("Bus[3]" . ".Mute", "0") ; Comms IN
|
||||
Sleep, 650 ; Delay so that the "deafened" sound from discord can play
|
||||
adjustMute("Strip[4]" . ".Mute", "0") ; Comms OUT
|
||||
}
|
||||
Return
|
||||
|
Loading…
Reference in New Issue
Block a user