TCP / UDP Control
Remote triggering can be done by sending TCP or UDP commands. The port numbers must be setup in the Settings before they can be used.
TCP commands must be terminated with a newline character, i.e., \n (0x0A) or \r\n (0x0D, 0x0A).
Commands
-
SURFACE <surface id> PAGE-SET <page number>
Set a surface to a specific page -
SURFACE <surface id> PAGE-UP
Page up on a specific surface -
SURFACE <surface id> PAGE-DOWN
Page down on a specific surface -
LOCATION <page>/<row>/<column> PRESS
Press and release a button (run both down and up actions) -
LOCATION <page>/<row>/<column> DOWN
Press the button (run down actions) -
LOCATION <page>/<row>/<column> UP
Release the button (run up actions) -
LOCATION <page>/<row>/<column> ROTATE-LEFT
Trigger a left rotation of the button/encoder -
LOCATION <page>/<row>/<column> ROTATE-RIGHT
Trigger a right rotation of the button/encoder -
LOCATION <page>/<row>/<column> SET-STEP <step>
Set the current step of a button/encoder -
LOCATION <page>/<row>/<column> STYLE TEXT <text>
Change text on a button -
LOCATION <page>/<row>/<column> STYLE COLOR <color HEX>
Change text color on a button (#000000) -
LOCATION <page>/<row>/<column> STYLE BGCOLOR <color HEX>
Change background color on a button (#000000) -
CUSTOM-VARIABLE <name> SET-VALUE <value>
Change custom variable value -
SURFACES RESCANMake Companion rescan for USB surfaces
Examples
Set the emulator surface to page 23:
SURFACE emulator PAGE-SET 23
Press page 1 row 2 column 3:
LOCATION 1/2/3 PRESS
Change custom variable "cue" to value "intro":
CUSTOM-VARIABLE cue SET-VALUE intro
Deprecated Commands
These commands will be removed in a future release of Companion. There is equivalent functionality in the list above.
The following commands are deprecated and have replacements listed above. Support for this must be enabled in the settings for it to work
PAGE-SET <page number> <surface id>
Make device go to a specific pagePAGE-UP <surface id>
Page up on a specific devicePAGE-DOWN <surface id>
Page down on a specific surfaceBANK-PRESS <page> <bank>
Press and release a button (run both down and up actions)BANK-DOWN <page> <bank>
Press the button (run down actions)BANK-UP <page> <bank>
Release the button (run up actions)STYLE BANK <page> <bank> TEXT <text>
Change text on a buttonSTYLE BANK <page> <bank> COLOR <color HEX>
Change text color on a button (#000000)STYLE BANK <page> <bank> BGCOLOR <color HEX>
Change background color on a button (#000000)RESCANMake Companion rescan for newly attached USB surfaces