Versions Compared

Key

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

The DoReactGlobal method is used to generate object reactions of system objects. The DoReactGlobal method transmits sends a reaction to the required object. The reaction is transmitted sent not only to the kernel , where on which the object is registered, but to the whole entire system. For In the DoReactGlobal method, the reaction is specified by the MsgObject object.

Method call syntaxSyntax for method invocation:

Code Block
languagejavascript
 function  DoReactGlobal(msgevent : MsgObject)

Method arguments:

  1. msgevent

...

  1. is a required argument. It

...

  1. specifies the reaction

...

  1. sent to the

...

  1. specified object.

...

  1.  Possible values: the MsgObject objects created earlier in the script.

...

Example. When On macro 2 starts, guard on Sensor arm sensor 2. The command is to must be transmitted sent to all system kernels as the a reaction to be registered in the Events LogEvent Viewer.

Code Block
languagejavascript
 if (Event.SourceType == "MACRO"&& Event.SourceId == "2" && Event.Action == "RUN")
{
var msgevent = CreateMsg();
msgevent.SourceType = "GRAY";
msgevent.SourceId = "2";
msgevent.Action = "ARM";
DoReactGlobal(msgevent);
}