Go to documentation repository
Format of events procedure for the Operator protocol object:
OnEvent("OPERATORPROTOCOL","_id_","_event_")
Operator format for describing the actions with the Operator protocol:
DoReact("OPERATORPROTOCOL","_id_","_command_" [,"_parameters_"]);
Format of events procedure for the Event Viewer object:
OnEvent("EVENT_VIEWER","_id_","_event_")
Operator format for describing the actions with the Event Viewer:
DoReact("EVENT_VIEWER","_id_","_command_" [,"_parameters_"]);
Examples of using events and reactions of the Operator protocol object:
OnEvent ("MACRO","2","RUN") { DoReact("OPERATORPROTOCOL","1","DEL_ALARM","objtype<CAM>,objid<3>,options<first>"); }
OnEvent ("MACRO","2","RUN") { DoReact("OPERATORPROTOCOL","1","HIDE_BUTTON","button<alarm,suspicious,false>,hide<1>,objtype<CAM>,objaction<DISARM>,objid<12>"); }
Example of using events and reactions of the Event Viewer object:
Set general background color to black and general text color to white for Event Viewer 1 on Macro 1.
OnEvent ("MACRO","1","RUN") { DoReactStr("EVENT_VIEWER","1","UPDATE_VIEW","bk_color<#000000>, defclr<#FFFFFF>"); }