France
Asked — Edited
Resolved Resolved by rgordon!

Watch If A Script Is Running

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.


ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

#2  

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.

#3  

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.