Go to documentation repository
Page History
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 appears.
Format of events procedure for the Macros object:
...
occurs.
Event | Description | Parameters | Parameter descriptionsdescription |
"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 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 user name username is displayed in the the Add. info column of the Event viewer in 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. |
Operator format to describe actions with the macros is:
...
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:
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>");
} |
Perform macro 2 in case of camera is armed.
...