You are right! I'm sorry about that.
So, I have a number of inputs designed to acomodate vmixcall inputs. Depending on the session, I use diferent calls so I have a script for each session. Because the script is big, I'll show the example for the first 2 layout inputs.
<code>
'First, making sure all layers are ON, inside layout inputs
dim inputn as integer = 24
for n as integer = 24 to 47
dim layer1 as integer = 1
for i as integer = 1 to 10
API.Function("LayerOn",Input:=inputn,Value:=layer1)
layer1 = layer1 + 1
next
inputn = inputn + 1
Sleep(200)
next
'next, define vmixcall to each speaker
dim moderador as integer = 1 'refer call for the moderator
dim oradora as integer = 2 'refer call for the first speaker
dim oradorb as integer = 3 'refer call for the second speaker
API.Function("SetLayer",Input:="24",Value:="2,"&moderador)
API.Function("SetLayer",Input:="25",Value:="2,"&moderador)
API.Function("SetLayer",Input:="25",Value:="3,"&oradora)
API.Function("SetLayer",Input:="25",Value:="4,"&oradorb)
</code>
With the code like this I have a syntax error.
The current script I use works but I have to go througth each line individualy:
<code>
API.Function("SetLayer",Input:="24",Value:="2,1")
API.Function("SetLayer",Input:="25",Value:="2,1")
API.Function("SetLayer",Input:="25",Value:="3,2")
API.Function("SetLayer",Input:="25",Value:="4,3")
</code>
Sorry for the long text. I hope it helps other folks also. Thanks :)