Add ability to control music with the Track section, Cycle to pause

This commit is contained in:
David Daily 2020-05-18 23:03:05 -05:00
parent ee10219104
commit 52495a60d1

30
VB.ahk
View File

@ -214,11 +214,36 @@ midiCCin:
Case 10: ; VoiceMeeter recorder controls Case 10: ; VoiceMeeter recorder controls
Switch cc Switch cc
{ {
Case 1: ; Media Previous
if (val)
{
Send, {Media_Prev}
}
Return
Case 2: ; Media Next
if (val)
{
Send, {Media_Next}
}
Return
Case 3: ; Media Play/Pause
Send, {Media_Play_Pause}
Return
Case 7: ; Rewind Case 7: ; Rewind
adjustToggle("Recorder.REW", val) if (val)
{
adjustToggle("Recorder.REW", true)
} else {
adjustToggle("Recorder.Play", true)
}
Return Return
Case 8: ; Fast Forward Case 8: ; Fast Forward
adjustToggle("Recorder.FF", val) if (val)
{
adjustToggle("Recorder.FF", true)
} else {
adjustToggle("Recorder.Play", true)
}
Return Return
Case 9: Case 9:
adjustToggle("Recorder.Stop", val) adjustToggle("Recorder.Stop", val)
@ -341,4 +366,3 @@ die(die_string:="UNSPECIFIED FATAL ERROR.", exit_status:=254) {
MsgBox 16, FATAL ERROR, %die_string% MsgBox 16, FATAL ERROR, %die_string%
ExitApp exit_status ExitApp exit_status
} }