Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleNote

Create the information dialog window beforehand using the Arpedit.exe utility and save it as test.dlg in the <Intellect><Axxon PSIM>\Program folder.

Code Block
languagejavascript
if (Event.SourceType == "GRAY" && Event.Action == "ALARM")
{
  var grayid = Event.SourceId;
  var grayname = GetObjectName("GRAY", grayid);
  var compname = GetObjectParentId("GRAY", grayid, "COMPUTER");
  DoReactStr("DIALOG", "test", "CLOSE_ALL","");
  DoReactStr("DIALOG", "test", "RUN","Alarm in the '" + grayname + "' sensor connected to the '" + compname + "' server."); 
}