
58
2.0 Getting Started
2.10.11.7 setProfile(profile)
2.10.11.7.1 Description
Sets the current profile in Link*One.
Please note that a profile change reinitializes the Lua script engine and
because of this, any information held in global variables will be lost. If
you need any information to survive over a profile switch, you will need
to store it in a file.
The actual switch is delayed until the script has finished executing the
current method.
2.10.11.7.2 Arguments
Argument
Type
Description
profile
String
The name of the profile to switch to.
2.10.11.7.3 Returns
Nothing.
2.10.11.7.4 Constants
None.
2.10.11.7.5 Example
2.10.11.8 setTimer(interval)
2.10.11.8.1 Description
Sets the script timer to the specified interval. This is the same setting as
on the Misc tab in the Settings dialog. To turn off the timer, specify zero
as the interval.
2.10.11.8.2 Arguments
Argument
Type
Description
interval
Number
The timer interval to set.
2.10.11.8.3 Returns
Nothing.
2.10.11.8.4 Constants
None.
2.10.11.8.5 Example
2.10.11.9 sleep(duration)
2.10.11.9.1 Description
Delays the script for the specified time.
2.10.11.9.2 Arguments
Argument
Type
Description
duration
Number
The time to wait.
2.10.11.9.3 Returns
Nothing.
2.10.11.9.4 Constants
None.
2.10.11.9.5 Example
2.10.12 Notification Area Icon
When started, Link*One adds an icon to the notification area (also
called the Systray sometimes). It is used to indicate different states and
events. Please note that the icon can also be modified by a script.
Appearance
Explanation
Link*One is idle.
Data was received from the serial port.
Data was sent to the serial port.
A serial hardware pin event was triggered.
OR
Data was received through a keyboard
capture definition.
The serial port specified in the profile could
not be opened.