Programming
76
Modero G4 Touch Panels - Configuration & Programming Manual
Button Commands (Cont.)
^SKT
Receive touch information on specified socket.
•
Syntax
:
"'^SKT-<socket>'"
•
Variable
:
socket = <0=disable socket, greater than 1023=enable socket on specified port>
Only socket values equal to or greater than 1024 are valid. The panel will open up a TCP listening socket on the port
specified. User or 3rd party program can connect to the panel using this port/socket number and receive touch/
release/move strings. By default, the panel disables touch notifications on startup.
Example
:
SEND_COMMAND Panel, '^SKT-7425' (enables touch notifications on socket 7425)
SEND_COMMAND Panel, '^SKT-0' (disables touch notification)"
^TEC
Set the text effect color for the specified addresses/states to the specified color. The Text Effect is specified by name and
can be found in TPD4. You can also assign the color by name or RGB value (RRGGBB or RRGGBBAA).
•
Syntax
:
"'^TEC-<vt addr range>,<button states range>,<color value>'"
•
Variables
:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state).
color value = Refer to the RGB Triplets and Names For Basic 88 Colors table on page 100.
Example
:
SEND_COMMAND Panel,"'^TEC-500.504&510.515,1&2,12'"
Sets the text effect color to Very Light Yellow on buttons with variable text 500-504 and 510-515.
?TEC
Get the current text effect color.
•
Syntax
:
"'?TEC-<vt addr range>,<button states range>'"
•
Variables
:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state).
custom event type
1009:
Flag - Zero
Value1 - Button state number
Value2 - Actual length of string (should be 9)
Value3 - Zero
Text - Hex encoded color value (ex: #000000FF)
Text length - Color name length (should be 9)
Example
:
SEND COMMAND Panel,"'?TEC-529,1'"
Gets the button 'OFF state' text effect color information.
The result sent to the Master would be:
ButtonGet Id = 529 Type = 1009
Flag = 0
VALUE1 = 1
VALUE2 = 9
VALUE3 = 0
TEXT = #5088F2AE
TEXT LENGTH = 9
^TEF
Set the text effect. The Text Effect is specified by name and can be found in TPD4.
•
Syntax
:
"'^TEF-<vt addr range>,<button states range>,<text effect name>'"
•
Variables
:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state).
text effect name = Refer to the Text Effects table on page 79 for a listing of text effect names.
Example
:
SEND_COMMAND Panel,"'^TEF-500.504&510.515,1&2,Soft Drop Shadow 3'"
Sets the text effect to Soft Drop Shadow 3 for the button with variable text range 500-504 and 510-515.