Go to documentation repository
Page History
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 | ||
---|---|---|
| ||
function NotifyEventGlobal (msgevent : MsgObject) |
Method arguments:
- msgevent
...
- is a required argument. It
...
- specifies the event
...
- sent to the system.
...
- Possible values: the MsgObject
...
- 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 | ||
---|---|---|
| ||
While executing When runnning 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); } |
Overview
Content Tools