To start reading commands in a stream an object of
InputStream [7] class is build by calling getInpuStream [9] on
an object of SerialPort class. The parameters are
set on serial port using setSerialPortParams.
The string received on serial port will be passed on to
decode module of W32Util class.
In the decode module of W32Util class, command is
decoded and the desired action is perfonned. The characters
4,3,2,I of command are used to set the focus on the specified
application window utilizing open source package orgjawin.
The character
°
will specify the task to be perfonned on the
application window by perfonning virtual key press using
Robot [9] class. To open executable file the exec module of
Runtime class is used [6].
To map the window handles with their title, the Map
data structure ofjava.utillibrary is used [10]