03-15-2017 02:41 PM
Hi, I have a non-modal SUD dialog with a button that executes a VBS via "ScriptStart".
It seems as though once the script starts, nothing on the SUD is updated until the VBS from ScriptStart completely executes, and therefore I cannot see any global variable updates on my SUD.
Is there a way I can update how these global variables are changing on my non-modal SUD?
Thanks!
Julia
03-16-2017 02:34 AM
Hi Julia,
If a script is running it blocks all DIAdem user interfaces. That’s per design to prevent unforeseen complications. But you have access to the non-modal dialog in that script and you could update the controls there.
Greetings
Walter
03-16-2017 03:45 AM - edited 03-16-2017 03:57 AM
Hi Julia,
This is because ScriptStart command starts your script synchronously which means that your non modal dialog script is waiting for your sub script to complete. The only way I can think of is using a worker to start your sub script asynchronously:
But this can make your architecture much more complicated.
Regards
03-16-2017 03:56 AM
Find a simple example attached.
03-16-2017 08:52 AM
Thank you! I think for now I will split up my VBS into a few parts so I can see intermediate changes. Thanks again!