
59
2.0 Getting Started
2.10.13 Migration guide WLinq 3.x to
Link*One
Link*One is based on the earlier product called WLinq. Many functions
present in WLinq (3.x) has been removed in Link*One. The reason for
this is to simplify Link*One and to avoid confusion if there are more
than one way to achieve a task.
This guide is meant to ease the transition from WLinq 3.x data formats
to the new script based approach in Link*One. Other types of features
that has been affected are also explained in this chapter.
2.10.13.1 Duplicate String Filter
The
Duplicate String Filter
function has been removed from the
Communications
tab in the
Settings
window. The equivalent
function can be achieved in a script:
2.10.13.2 Case Setting
The
Case Setting
function has been removed from the
Keyboard
tab in the
Settings
window. To achieve the same in a script, use the
appropriate sample from below:
2.10.13.3 Character Translation
In WLinq 3.x, the only way to have WLinq press special keys like Home,
Page Down, and similar was awkward. First you had to choose a char-
acter position, then redefine that position to map the character to for
example the Home key. Then in the data output format, you had to use
that character in the output string, for example: Input() + “\x81”.
Link*One has no character translation table, instead you can record a
custom key sequence and give it a name. See Section
2.9.4.2.2 Key
Settings
for instructions on creating a custom key sequence.
The key name can then be used as an expression in the string passed to
the
send()
method:
2.10.13.4 Send Pre- and Postfix Keys
This feature mainly existed for the integration of WLinq to Freefloat
Access*One. When activated, the key sequence Ctrl + Alt + 1 was sent
before the data string and Ctrl + Alt + 2 was sent after the data string. It
enabled Access*One to distinguish between keyboard and barcode data.
To achieve the same result, record the key sequences and given them the
names {Prefix} and {Postfix} and then use them in an expression:
2.10.13.5 Lock Output Window
The
Lock Output Window
function can be implemented in a script.
The following script only sends data to a window who’s title contain the
text “- Notepad”:
2.10.13.6 Initialization String
The
Initialization String
can be used for sending a command to for
example a barcode scanner that needs some enabling or configuration
command at startup.
In Link*One, the following script could instead be used to send com-
mands to the equipment attached to the serial port:
Note:
onStart()
is called when a profile is activated. This happens
when Link*One starts but also when you click
OK
in the
Set-
tings
dialog. Similarly,
onEnd()
is called when Link*One is
exited and also when the Settings dialog is entered by clicking
the Settings button in the main window.
2.10.13.7 Filter Unknown Data Strings
In WLinq 3.x, if no data editing format matched the input data, the op-
tion Filter Unknown Data Strings determined whether the input data
should be discarded or let through unmodified. The same effect can eas-
ily be implemented in a Link*One script:.