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 control event based script
#3
I did what you told me and now the script works. Thank you very much. The new code look like this:

value = event.getvalue('0/2/10')
keep_on = grp.getvalue('32/1/4')
if keep_on == false then
if value == true then
os.sleep(600)
grp.write('0/2/10', false)
end
end

I didnt fully understand what you meant by number 1. Should you not insert which object you want to check in event.getvalue like I have done now?

Do you also have another and better method for waiting in the script?
Reply


Messages In This Thread
How to control event based script - by 02dag - 22.09.2018, 18:50
RE: How to control event based script - by 02dag - 23.09.2018, 10:54

Forum Jump: