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.

close window
#12
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:
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.
Reply


Messages In This Thread
close window - by Daponte - 11.02.2019, 07:18
RE: close window - by admin - 11.02.2019, 07:44
RE: close window - by Daponte - 11.02.2019, 07:57
RE: close window - by admin - 11.02.2019, 08:06
RE: close window - by Daponte - 11.02.2019, 08:44
RE: close window - by admin - 11.02.2019, 09:00
RE: close window - by Daponte - 11.02.2019, 09:30
RE: close window - by admin - 11.02.2019, 09:41
RE: close window - by Daponte - 11.02.2019, 09:55
RE: close window - by admin - 11.02.2019, 10:32
RE: close window - by Daponte - 11.02.2019, 10:50
RE: close window - by admin - 11.02.2019, 10:58
RE: close window - by Daponte - 11.02.2019, 11:20
RE: close window - by admin - 11.02.2019, 11:33
RE: close window - by Daponte - 11.02.2019, 11:37
RE: close window - by Daniel - 11.02.2019, 12:08
RE: close window - by Daponte - 11.02.2019, 14:06
RE: close window - by Daniel - 11.02.2019, 14:13
RE: close window - by Joep - 16.11.2019, 15:41

Forum Jump: