Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Moreover, one can configure the filter of events – the list of events which are to be processed by the Script system object. In general, including Including the event to the filter equals to if operator in the text of script, i.e. when the event is in the table, the operator can be omitted.

...

Info
titleExample

If the Object’s type column has the Macro value, the Identifier column has the 1 value and the Event column has the Executed value, then

Code Block
languagejavascript
if (Event.SourceType == "MACRO" && Event.SourceId==1 && Event.Action == "RUN")
{
    DoReactStr("CAM", "2", "REC", "");
}

script can be used instead of script.

Code Block
languagejavascript
DoReactStr("CAM", "2", "REC", "");

The detailed information on the elements of the settings panel for the Script object is given in Administrator's guide.


Info
titleExample.

Recording on Camera 1 is to be started when controlling PTZ device in the Video surveillance monitor.

For this adjust the Script object as follows:

  1. Select the required time zone when the script is to be executed.
  2. Enter the script text:
  3. Adjust the filter as follows:
    1. Select CORE in the Object’s type dropdown list.
    2. Enter DO_REACT in the Event field.

...