11.02.2019, 10:58
You can use the same script, but you need an additional control object.
1. Create a virtual object (32/1/1 in this example)
2. Replace 1/1/1 with virtual object address in Custom JavaScript code
3. Create another object for control.
4. Attach an event script to control object:
This way sending on to control object will force value toggle for the virtual object. And this will execute close window via extension sequence.
1. Create a virtual object (32/1/1 in this example)
2. Replace 1/1/1 with virtual object address in Custom JavaScript code
3. Create another object for control.
4. Attach an event script to control object:
Code:
if event.getvalue() then
grp.write('32/1/1', false)
grp.write('32/1/1', true)
end
This way sending on to control object will force value toggle for the virtual object. And this will execute close window via extension sequence.