Good morning
For a simple testing application I would like to use XojoScript where users can define own commands to specify what should be done based on previous values captured from serial devices.
Can I use for example XojoScript to directly call a method like sending something back to a serial port or modifying the UI?
thanks in advance
richard
Hi Richard,
I would create a class “YourScriptContext” and assign an instance to your script’s Context property. Every method in the context class can be called from the script code. These method(s) can than do basically everything like upadting the UI or send data back to what ever you want.
1 Like
Maybe interesting for you is this thread: Worker and SendProgeess()
I’ve posted a link to an example project.
1 Like