Go to documentation repository
Page History
...
Code Block | ||
---|---|---|
| ||
if (Event.SourceType == "CAM" && (Event.Action == "DETACH" || Event.Action == "REC_STOP")) { var cam_id = Event.SourceId; var parent_comp_id = GetObjectParentId("CAM", cam_id, "COMPUTER"); DoReactStr("MAIL_MESSAGE","1","SETUP","from<***@mail.ru>,to<***@mail.ru>,body<Camera disabling "+cam_id+" on the Server"+parent_comp_id+">,parent_id<1>,subject<Attention! Camera disabling>,name<Message 1>,objname<Message 1>"); DoReactStr("MAIL_MESSAGE", "1", "SEND", ""); } |
Overview
Content Tools