Logic Machine Forum
Pop-Up Window - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Pop-Up Window (/showthread.php?tid=1871)



Pop-Up Window - rogerabit - 28.01.2019

HI!
I need create a window pop-up when the bit object change their state in the same page of visualitzation.
If the state is 1, the pop-up window show a one notification (ex: NOTIFICATION1) and if the state is 0 the pop-up window show an other notification (ex: NOTIFICATION2)
The notifications it's like image.
Thanks

[Image: X16CV.png]


RE: Pop-Up Window - admin - 28.01.2019

You can Alerts for that. First, you need to enable "Show alerts in Usermode" in Utilities > Vis. configuration. Then create a script attached to the required object:
Code:
value = event.getvalue()
if value then
  alert('value is 1')
else
  alert('value is 0')
end