So the idea is ,instead of using the API commands, use the show control to create a specific behaviour of the Cuecore that will send back the status of each playback when your server will send a TCP request for it typically at its start.
The first step, is to store in variables the current cue of each playback:
- In show control create a playback action list and add one action for each playback,
- In the action select "cue index" as trigger type, select witch playback you want to use.
- Add a Variable action, and select "set value"/"control" and set the index of the variable you want to use ( let's say variable 1 for playback 1 etc.)
- do that for each action/playback
Second step is to make the Cuecore send the variables values:
- create a variable action list
- create one action for each variable
- edit the action, in "trigger type" select "channel" and in "variable index" set the variable index from where you want the value
- add a TCP task and select "send unsigned", in the first parameter type the TCP tag you want to use like 'PB1=" for the variable 1; second parameter is the IP address and TCP port of your server.
Last step is to say to the Cuecore when to send the messages to your server
- create a TCP action list
- create 1 action
- Edit the action and in the trigger value, type the TCP key word your server will send to ask for informations ( you can type it or use the learn button to avoid typo)
- create an "action list task", set it to "enable"/"set" select the "variable" action list and set it to "on"
- create a variable task, set it to "refresh"/"all" . (When you refresh the variables it will send all the TCP messages.)
- create a last "action list" task, set it to "enable"/"set" select the "variable" action list and set it to "off"
So, the idea is to have the value of the playing cue stored into variables.
The variable action list should send TCP messages as soon as the value change but by default it will be inactive.
When the Cuecore will receive the TCP message from your server, it will activate the variable action list, refresh all variables triggering all the variables actions and send the TCP messages.
And finally in the end we deactivate again the variable action list.
I hope this clear and will help you