Logic Machine Forum
stop one script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: stop one script (/showthread.php?tid=243)



stop one script - Angeles - 03.03.2016

Hello:


I have several scripts with relationship in a certain values.

So, I wanted to stop the execution of one of them if a certain script begin to run. The first one has a delay of 10 minutes and at last of this time it executes a sentence.

For example, I press a button to turn off a light but this going after 10 minutes. Problem If  during this 10 minutes I turn on the same light - the lighit has just turning off by the firs scritp. I've tried doing enable / disable but it seems that when it is already running is not possible to stop it.

The example is simple but it is not the purpose of my program.

Thank you.


RE: stop one script - admin - 03.03.2016

Have a look at this example, it has a better solution to timer task:
http://forum.logicmachine.net/showthread.php?tid=43&pid=864#pid864