Go to documentation repository

Page tree

Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.

Previous page The DoReactSetupCore method  The DoReactGlobal method Next page


Skip to end of metadata
Go to start of metadata

The DoReactSetup method is used for temporary changing parameters of the object. It changes only the specified parameters, leaving other parameters intact.

Method call syntax

function  DoReactSetup (objtype : String,  id : String, param<value>  [, param<value>] : String )

Method arguments:

  1. objtype - required argument. The type of the object the parameters of which are to be changed. It takes the following values:  type – String, range – existing object types.
  2. id - required argument. Identification number of the object of the type set in the objtype argument. It takes the following values:  type – String, range – existing identification numbers of the objects of the specified type.
  3. param<value> - required argument. Several arguments of this type can be specified. The parameters of the action.

One parameter has the following syntax:

“param<value>”, where

param – name of the parameter;

value – value of the parameter.

Several parameters have the following syntax:

“param1<value1>,param2<value2>…”.

Elements of the list are separated by commas with no white space.

The param argument can take the following values: values of the String type, range is limited by available parameters of the specified action. The “value” argument can take the following values: values of the String type, the range depends on the parameter.

Example. When Macro 1 starts, temporary remove all cameras on the first monitor.

 if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN")
{
DoReactSetup ("MONITOR","1","REMOVE_ALL","");
}