Accessing UI Vision Variables from API method

Good afternoon.
I am accessing UI Vision using the API, it successfully runs the code, but I need to bring the variables stored by UI Vision program that I created into my program
I notice you do have an exit code that is returned, is it possible this can be done or added?

How many values do you need to return to the script? Just one or more?

Two methods I use:

  • Store the values in a CSV file with csvSave or csvSaveArray and then read the CSV file in your script.

  • Use XRun with command line parameters to send the values to a second script.