05.05.2020, 13:25
I would do it by two scripts. First event attached to your 1/1/1 which will enable/disable the second resident script.
Second is resident script with interval of 1s and such code.
In this example I called resident script 'loop' if you use different name change it in the first script
Code:
value = event.getvalue()
if value then
script.enable('loop')
else
script.disable('loop')
end
Code:
grp.write('1/1/2', true)
os.sleep(1)
grp.write('1/1/3', true)
os.sleep(1)
grp.write('1/1/4', true)
------------------------------
Ctrl+F5
Ctrl+F5