Go to documentation repository
The NotifyEventGlobal method is used to generate system events. The generated event is transmitted sent to all system kernels connected via the netnetwork. For In the NotifyEventGlobal method, the event is specified using the MsgObject object.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 | ||
|---|---|---|
| ||
function NotifyEventGlobal (msgevent : MsgObject) |
Method arguments:
...
...
...
...
...
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 | ||
|---|---|---|
| ||
While executing When running this script, camera1 camera 1 is not set for recordingto record. |
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "MACRO"&& Event.SourceId == "1" && Event.Action == "RUN")
{
var msgevent = CreateMsg();
msgevent.SourceType = "CAM";
msgevent.SourceId = "1";
msgevent.Action = "REC";
NotifyEventGlobal(msgevent);
} |