Award
Congratulations rgordon, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

Watch If A Script Is Running

Assistance Requested

Help fredebec with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

fredebec claims to have checked these sources:
 
#1

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 :

Code:


...
if ("script B is running")
pause()
...



Thanks.

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.


Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


#2

@fredebec

See this post for an idea on how to do this. (Post #2 & 3)


www.ez-robot.com/Community/Forum/Thread?threadId=8234

#3

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.

#4

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.