...
| Code Block |
|---|
|
function DoReactStr(objtype : String, id : String, action : String, param<value> [, param<value>] : String) |
Method arguments:
- objtype - – Required argument. The type of the object that the action should be generated for. It takes the following values: Type – String, range – existing object types.
- 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.
- action - – Required argument. The action to be generated. It takes the following values: Type – String, range – available actions for the objects of the specified type.
- param<value> - – Required argument. Several arguments of this type can be specified. The parameters of the action.
...
Problem. Use macros 1 to enable telemetry control using mouse on the camera 4 displayed in the monitor 10. Use macros 2 to disable it.
| Code Block |
|---|
|
if (Event.SourceType == "MACRO" && Event.Action == "RUN" && Event.SourceId == "1")
{
DoReactStr("MONITOR","10","CONTROL_TELEMETRY","cam<4>,on<1>");
}
if (Event.SourceType == "MACRO" && Event.Action == "RUN" && Event.SourceId == "2")
{
DoReactStr("MONITOR","10","CONTROL_TELEMETRY","cam<4>,on<0>");
}
|