This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How to stop this script when running
#2
1. Script name in enable/disable must be in quotes. Right now you are referring to a variable named Ligths_UP that's not defined. Alternatively you can simply use grp.getvalue() in
your script to determine whether it should run or not:
Code:
-- run only if 1/1/1 value is true
if grp.getvalue('1/1/1') then
  -- do something
end

2. You can set the event script "Execution mode" to "Last instance only" and only execute your action when the event value is true. Sending false will stop the previous script instance.
Code:
if event.getvalue() then
  -- do something
end
Reply


Messages In This Thread
RE: How to stop this script when running - by admin - 12.04.2024, 12:10

Forum Jump: