Versions Compared

Key

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

...

Code Block
languagejavascript
 function DoReactStr(objtype : String, id : String, action : String, param<value> [, param<value>] : String)

Method arguments:

  1. 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.
  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. 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.
  4. 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
languagejs
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>");
}