Macro Buttn vs VBAN REMOTE button script

How to use Voicemeeter Remote API and control Voicemeeter Audio Engine
Post Reply
HoustonGuyNW
Posts: 15
Joined: Sun Aug 30, 2020 2:43 am

Macro Buttn vs VBAN REMOTE button script

Post by HoustonGuyNW »

I have a button set up on the Macro Buttons on my computer. When I try the same script on a button (after removing the comments) it does not work. Is there a line number limit on the Remote button scripts?

I use SendText("vban1",.... followed by the script and close the parenthesis at the end. Using one line SendText("vban1", Strip(0).Mute = 1;); works.

Here is what I use on the computer button:
--------------------
vban.Enable = 1;
Strip(0).Mute = 1; // MUTE ON the LINE IN 1 strip of Voicemeeter
Strip(1).Mute = 1; // MUTE ON the LINE IN 2 strip of Voicemeeter
Strip[1].Gain = -60.0; // Drop gain LINE IN 2
Strip(2).Mute = 1; // MUTE ON the LINE IN 3 strip of Voicemeeter
Strip[2].Gain = -60.0; // Drop gain LINE IN 2
Strip(3).Mute = 1; // UNMUTE the VIRTUAL IN strip of Voicemeeter
Strip[4].Gain = -7.4; // VIRTUAL IN GAIN
Strip(4).Mute=0; // UNMUTE the AUX-VIRTUAL IN
Bus(0).Mute = 0; // MUTE OFF the A1 BUS
Bus[0].Gain = -7.9; // Raise gain from TV
Bus(1).Mute = 1; // MUTE ON the A2 BUS
Bus[1].Gain = -60.0; // Drop gain on A2 BUS
Bus(2).Mute = 1; // MUTE ON the A3 BUS
Bus[2].Gain = -60; // Drop gain
Bus(3).Mute = 0; // MUTE OFF the B1 BUS
Bus[3].Gain = -11.9; // Set gain for Computer input audio
Bus(4).mute = 1; // MUTE ON the B2 BUS
Bus[4].Gain = -60.0; // Drop gain on A2 BUS
vban.outstream[0].port = 6980;
vban.outstream[0].quality = 0;
vban.outstream[0].on = 1;
vban.outstream[1].port = 6980;
vban.outstream[1].quality = 0;
vban.outstream[1].on = 1
vban.outstream[2].port = 6980
vban.outstream[2].quality = 0;
vban.outstream[2].on = 1;
vban.outstream[3].port = 6980;
vban.outstream[3].quality = 0;
vban.outstream[3].on = 1;
vban.outstream[4].port = 6980;
vban.outstream[4].quality = 0;
vban.outstream[4].on = 1;
vban.outstream[5].port = 6980;
vban.outstream[5].quality = 0;
vban.outstream[5].on = 1;
vban.outstream[6].on = 0; // VBAN line 7 OFF
vban.outstream[7].on = 0; // VBAN line 8 OFF
------------------------------------------------------------------

I would like to use the following on the Remote Button App also but it does not work.
Button(0).State = 1; //PUSH the button ID 1
Button(1).State = 0; //PUSH the button ID 2
Button(3).State = 1; //PUSH the button ID 3
Button(4).State = 1; //PUSH the button ID 5
Button(5).State = 1; //PUSH the button ID 6
Button(6).State = 1; //PUSH the button ID 7
Button(7).State = 1; //PUSH the button ID 8

Any assistance would be helpful. Thanks
Vincent Burel
Site Admin
Posts: 2005
Joined: Sun Jan 17, 2010 12:01 pm

Re: Macro Buttn vs VBAN REMOTE button script

Post by Vincent Burel »

by VBAN you have to add the Command Prefix: here it is the 3 possible instructions:

Command.Button(0).State =0
Command.Button(0).StateOnly =1;
Command.Button(0).Trigger =1;
Post Reply