
62
2.0 Getting Started
Open the serial port
WLinq 3.x
Link*One
OpenPort()
app.openPort()
Close the serial port
WLinq 3.x
Link*One
ClosePort()
app.closePort()
Send data to the serial port
WLinq 3.x
Link*One
SendData( “abc” )
data = “abc”
app.sendSerialData( data, data:len() )
Note:
The profile switch is performed when the script has finished its
execution.
Switch profile
WLinq 3.x
Link*One
SetProfile( “Profile2” ) app.setProfile( “Profile2” )
2.10.14 Support for Thin Clients, Java
Applications, and Flash Applica-
tions
Normally, Link*One uses a Windows API function called SendInput to
simulate key presses to the active application. This API is recommended
by Microsoft because it takes care of differences between different key-
board locales. For example, on a French keyboard, the letter A is posi-
tioned where the letter Q is on a US/UK keyboard layout.
However, this technique of simulating keys doesn’t work with all envi-
ronments and applications used on the Windows platform. So far, prob-
lems have been spotted with thin clients (Terminal Services or Citrix),
Java applications, and Flash applications.
To address this issue, key sequences for digits, lower case and upper case
letters has been recorded and is present in the default configuration of
Link*One. Script functions for translating digits and letters to key se-
quences are provided in
extra.lua
. Also, the function
sendData
in
the default script.txt contains information about how to activate this
feature.
Please note that the key sequences are tailored for the most common
keyboard layouts, QWERTY with non-shifted keys for digits. You need
to modify some of these key sequences to make it work on for example
AZERTY (French) and QWERTZ (German) keyboard layouts.
2.10.15 Lua Copyright
Copyright © 1994-2008 Lua.org, PUC-Rio.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the “Soft-
ware”), to deal in the Software without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the following condi-
tions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY
OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHER-
WISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFT-
WARE.
2.10.16 Version History
Version Changes
Date
5.0
Major upgrade, product name changed, and OEM
version created.
2008-11-26
5.1
Changed name of Lua DLL file to make it compatible
with a Lua addon.
Fixed problem with empty hot key sequences.
2009-03-06
5.2
Added the wizard.
Updates to the manual.
2009-04-02
5.3
When “{65}” was used as a character notation there
was a bug in the parser that sometimes made the
character disappear.
On slow systems with a single CPU core there could
be a race condition between the main program mod-
ule and the licenser module.
2009-10-29
5.4
Added 30-day trial period.
Added scan codes for all default key sequence defini-
tions. This was done to avoid problems sending Tab
and similar keys in a thin-client environment.
2010-10-05
5.5
OEM version released for testing.
2010-12-22
5.6
OEM version with extra tab in Settings dialog for
easier configuration of scanner key.
2011-05-05
5.7
Now blocks key sequences named {numbers} since
they won’t work. The reason is that the syntax {num
-
ber} is used as a format to specify the ASCII/Unicode
code for characters in the string sent to app.send().
Added built-in support for applications/environ-
ments not supporting the way Link*One simulates
most keys. Added appendix that explains how this
feature is activated and how it works.
2011-05-10
5.8
Removed remnants of code for overlapped I/O that
wasn’t used. It made third-party serial drivers upset
and caused Link*One to hang. This problem was
noticed when trying to use Link*One together with
BlueSoleil Bluetooth software.
2011-11-01