Versions Compared

Key

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

The NotifyEventGlobal method is used to generate system events. The generated event is transmitted to all system kernels connected via the netnetwork. For In the NotifyEventGlobal method, the event is specified using by the MsgObject object .(see The MsgObject and Event objects and their built-in methods and properties).

Syntax for method invocation:Method call syntax

Code Block
languagejavascript
 function  NotifyEventGlobal (msgevent : MsgObject)

Method arguments:

  1. msgevent

...

  1. is a required argument. It

...

  1. specifies the event

...

  1. sent to the system.

...

  1. Possible values: the MsgObject

...

  1.  objects created earlier in the script.

Example. When Macro On macro 1 starts, the first camera is set for recordingto record. The command is to must be transmitted sent to all system kernels as the event to be registered in the Events LogEvent Viewer.

Info
titleNote

 While executing  When runnning this script, camera1 camera 1 is not set for recordingto record.

Code Block
languagejavascript
 if (Event.SourceType == "MACRO"&& Event.SourceId == "1" && Event.Action == "RUN")
{
var msgevent = CreateMsg();
msgevent.SourceType = "CAM";
msgevent.SourceId = "1";
msgevent.Action = "REC";
NotifyEventGlobal(msgevent);
}