
I'm using the C# SDK Tutorial 52 Get Variable to test communications with my app EZ-Face. The code below shows how to send or set a variable "X" and Get "X". I understand Set "X"Code:
private void btnSetX_Click(object sender, EventArgs e) {
sendCommand(string.Format("$FaceName = {0}", tbX.Text));
}
private void btnGetX_Click(object sender, EventArgs e) {
sendCommand("print($x)");
}
What I am wondering about is how could I use the GetX event "Print($x)" to take that variable from ARC and set it as a variable in C# or even display it in a text box?
Thank you!
Alan
To clarify, I have modified sendCommand() to now return the response string.
Code:
So now your Get X looks like this...
Code:
That is exactly what I was hoping for and trying to do. I had tried something similar to "string retVal = sendCommand("print($x)");" for the get button but was on the wrong path trying change how the private void Log function worked.
What you're asking for is within the ARC (non programmers) software.