14 scripts – Matrix Orbital GTT70A User Manual
Page 46
Command Summary
42
2.14 Scripts
14.1 Run Script
File
Dec
Hex
ASCII
254 93
FE 5D
þ ]
FileName
FileName
FileName
2.0
Send an array of bytes saved in the specified script file as if it was received from the serial port. Sending data to the
serial port is still possible, but it will queue up in the receive buffer and will only be parsed after the execution of
the script file. Scripts may be stacked up to 10 deep.
FileName
ASCII String
Filename, and path from the root folder, of the script file to run.
14.2 Create a
Scripted Region
Dec
Hex
ASCII
254 131
FE 83
þ ƒ
ID X Y W H UpBitmap DownBitmap UpScript DownScript
ID X Y W H UpBitmap DownBitmap UpScript DownScript
ID X Y W H UpBitmap DownBitmap UpScript DownScript
2.1
Create a region that responds to a touch event by executing scripts, in addition to the normal visual and event
updates. Scripts always execute, regardless of the current touch reporting style. If only one script is desired, use
an empty string for the other script filename.
ID
Byte
Index used to identify the desired touch region.
X
Signed Short
Leftmost coordinate of the scripted touch region.
Y
Signed Short
Topmost coordinate of the scripted touch region.
W
Short
Width of the scripted touch region.
H
Short
Height of the scripted touch region.
UpBitmap
Byte
Index of the loaded bitmap displayed when the region is released.
DownBitmap
Byte
Index of the loaded bitmap displayed when the region is pressed.
UpScript
ASCII String
Filename of the script to be executed when the region is released.
DownScript
ASCII String
Filename of the script to be executed when the region is pressed.
14.3 Create a
Scripted Key
Dec
Hex
ASCII
254 138
FE 8A
þ Š
ID Row Col UpScript DownScript
ID Row Col UpScript DownScript
ID Row Col UpScript DownScript
2.1
Designate a specific key that responds to a press event by executing scripts. Scripts always execute, regardless of
the current key reporting style. If only one script is desired, use an empty string for the other script filename.
ID
Byte
Index used to identify the desired key value.
Row
Byte
Row index of the scripted key.
Col
Byte
Column index of the scripted key.
UpScript
ASCII String
Filename of the script to be executed when the key is released.
DownScript
ASCII String
Filename of the script to be executed when the key is pressed.