Go to documentation repository
Page History
Tip |
---|
Formats
Format of events procedure for the Computer object:
...
Show first display on the CLIENT computer when activating the first time zone.
Code Block OnEvent("TIME_ZONE","1","ACTIVATE") { DoReact("DISPLAY","1","ACTIVATE","macro_slave_id< CLIENT >"); }
- There are two displays, the first one shows the virtual monitor with cameras, the second one shows the Map object with the FSA sensors. When a camera alarm is triggered, Display 1 is shown, when a sensor alarm is triggered, Display 2 is shown, but only on the CLIENT computer.
Code Block OnEvent("CAM",N,"MD_START") { DoReact("DISPLAY","2","DEACTIVATE","macro_slave_id<CLIENT>"); DoReact("DISPLAY","1","ACTIVATE","macro_slave_id<CLIENT>"); } OnEvent("FSA_ZONE",M,"ALARM") { DoReact("DISPLAY","1","DEACTIVATE","macro_slave_id<CLIENT>"); DoReact("DISPLAY","2","ACTIVATE","macro_slave_id<CLIENT>"); }
Overview
Content Tools