Versions Compared

Key

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

The MACRO object corresponds to the Macros system Macro system object.

The MACRO object sends events presented in the table.   Procedure is started when the corresponding event appearsoccurs.

Format of events procedure for the Macros object:

Code Block
OnEvent("MACRO","_id_","_event_")

Event

Description

"RUN"

Action is performed

Operator format to describe actions with the macros is:

Event

Description

ParametersParameter description

RUN

Action is performed

src_sender<>

The name of the computer on which the macro was executed.

Note. The value of this parameter is displayed in the Add. info column of the Event Viewer in real time. When Intellect is restarted and event log records are loaded from the database, this information is not displayed in the interface, but remains in the database

user_id<>

The identifier of the user who executed the macro.

Note. The value of this parameter together with the username is displayed in the Add. info column of the Event Viewer in real time. When Intellect is restarted and event log records are loaded from the database, this information is not displayed in the interface, but remains in the database

...

List of commands and parameters for the the MACRO object is presented in the following table:

Command

command description

Parameters

Description

"RUN"

– perform action

performs an action

-

-

"SETUP"

– set

sets parameters for a macro

name<>

Object name

.

flags<>

Flags

.

state<>

Object state

.

hidden<>

«Hidden» flag

.

local<>

 «Local» flag

.

 

Properties of the the MACRO object are shown in the table.

Properties of the MACRO object

Description of properties

ID<>

Object ID

.

PARENT_ID<>

Parent object ID

.

 

The The MACRO object can be in the following states:

Perform macro 2 in case of camera is armed.

...

State of the MACRO object

Description

"NORM"

Normal

.

 

Examples of using events and reaction of the MACRO object:

...

Set the current position of video camera to preset while performing the macro 1.

Code Block
OnEvent("MACRO","1","RUN")
{
    DoReact("TELEMETRY","1","SET_PRESET","TEL_PRIOR<1>");
}