
50
2.0 Getting Started
2.10.6.7.5 Example
Note:
• When you want send() to send the characters \ and { you need
to escape those with a backslash. There is a helper method called
escapeData() in the supplied file extra.lua.
• If you specify a key name for a key that is not defined, it will be
ignored.
• When sending data to certain applications they might miss key
presses if the key events are sent too fast or too early. You may
need to increase the setting Interkey Delay and/or intersperse
calls to send() with calls to sleep() or findWindow() depending on
the situation.
2.10.6.8 sendSerialData(data, length)
2.10.6.8.1 Description
Sends serial data to the COM-port.
Note that Link*One needs to be configured to use a COM-port for this
method to work.
2.10.6.8.2 Arguments
Argument
Type
Description
data
String
The data to send to the COM-port.
length
Number
The number of characters of data that
should be sent.
2.10.6.8.3 Returns
Nothing.
2.10.6.8.4 Constants
None.
2.10.6.8.5 Example
2.10.6.9
sendSubscriberData(data, length)
2.10.6.9.1 Description
Sends data to subscribers.
If there are no subscribers, calling this method has no effect.
2.10.6.9.2 Arguments
Argument
Type
Description
data
String
The data to send to the COM-port.
length
Number
The number of characters of data that
should be sent.
2.10.6.9.3 Returns
Nothing.
2.10.6.9.4 Constants
None.
2.10.6.9.5 Example