i'm having difficulty solving this issue.
Let's say I have two scripts both using the time trigger to fire.
The script B (which runs later then script A) should not run at all if script A is still running.
I was trying to solve it with this http://www.mjtnet.com/blog/2006/09/15/r ... ncurrently
but it doesen't work because script A halts at any line of code it was on when the time for script B came up to run.
So script B is just waiting indefinitly for script A to finish, because it's in a loop code:
Code: Select all
SRT>WaitForIdle
ReadIniFile>ctrl.ini,Share,RunStatus,IsIdle
Wait>0.2
If>IsIdle=ACTIVE,WaitForIdle
EditIniFile>ctrl.ini,Share,RunStatus,ACTIVE
END>WaitForIdle
So to sum it up, script B should wait for A to finish, and then run, regardles of the trigger it has.
I hope i wasn't too confusing. I would greatly appriciate if someone could point me in the right direction.
Thanks.