Hi,
I wanted to know if there some kind of script command to watch if another script is running. I want to do something like :
...
if ("script B is running")
pause()
...
Thanks.
Sharp IR Collision
— Stops movement panels when a Sharp IR sensor on EZB ADC detects objects within a set range; displays ADC voltage, VU meter and 0-255 distance value.
Try it →
Hi,
I wanted to know if there some kind of script command to watch if another script is running. I want to do something like :
...
if ("script B is running")
pause()
...
Thanks.
@fredebec
See this post for an idea on how to do this. (Post #2 & 3)
synthiam.com/Community/Questions/8234
You could set a variable at the start of the watching script, and then reset the variable at the end of the dependent script. This would allow you to wait for change of the variable from the watching script and then continue after the variable has changed.
Thanks @rgordon. I knew there was a post like this hidden somewhere... And thanks also @Cochran. I see that you had the same idea, so it confirms that it is the good way to go.