I’m using VB to write a client that calls a HTML scoreboard.
The person thats written the scoreboard relies on an Invoke command to make changes, so I’ve got a button which does this:-
InvokeControl(TeamHome('" + HomeTeamInitialsTXT.Text + "')")
The InvokeControl being a Sub:-
Sub InvokeControl(ByVal Value As String) If Me.CasparDevice.IsConnected = True Then CasparDevice.Channels(0).CG.Invoke(1, 1, Value) End If End Sub
This sends a string to Caspar:-
CG 1-1 INVOKE 1 setTeamHome(‘MANUTD’)
This works until I try and send the text MAN UTD, then the update fails and nothing is shown.
If I manually type into Caspar, this commands works:-
CG 1-1 INVOKE 1 “setTeamHome(‘MAN UTD’)”
but I cant get past VB.NET IDE thinking there are too many quotations when I try and add them anywhere in code.
I think its something basic and my brain is failing me.
Does this make sense to anyone?