![background image](http://html1.mh-extra.com/html/amx/i-pclink-web/i-pclink-web_instruction-manual_2938917029.webp)
Programming i!-PCLink/Web
23
i!-PCLinkWeb
Levels
i!-PCLink/Web supports the following control levels (master to PC).
Module
You can program the i!-PCLink/Web application directly using the commands and strings or you
can use the supplied module and accept the functionality it offers. Both methods have their place so
using one or the other depends or your situation. For instance, if you are building a kiosk
application then sending strings of the files or URL's you need to open may be all that is required.
In this instance, there is no need to have file navigation from the touch panel so the module is of
little use.
You can use a combination of the module and your own programming if you prefer. To assist you in
your own programming, the module code is supplied as open source. You can use this is a start to
create custom programming or use it as-is for the standard functionality.
To include the module in your program, you must first compile the supplied module code. This will
create the "i!-PCLinkWeb2Mod.tko". Then, define an instance of the module in your program using
a DEFINE_MODULE line like the example below (normally, DEFINE_MODULE statements are
listed following the DEFINE_START section):
DEFINE_MODULE 'i!-PCLinkWeb2Mod' mdlWEB(dvPCLinkWeb,
dvTP,
dvKB)
Where: mdlWEB is a unique module name
dvPCLinkWeb is the device number of the i!-PCLink/Web application as setup in the
device section of the control panel.
dvTP is the touch panel device array that i!-PCLink/Web application will communicate
with.
Channels (Cont.)
PCL_CHNL_WINDOW_NORMALIZE = 43 //normalize current active window
PCL_CHNL_WINDOW_MAXIMIZE = 44 //maximize current active window
PCL_CHNL_WINDOW_MINIMIZE_ALL = 45 //minimize all windows
PCL_CHNL_BROWSER_ACTIVE = 50 //hide/show internal web browser
PCL_CHNL_BLACKOUT_ACTIVE = 51 //hide/show the blackout screen
PCL_CHNL_KEY_CAPSLOCK = 60 //get/set caps lock state
PCL_CHNL_KEY_NUMLOCK = 61 //get/set num lock state
PCL_CHNL_KEY_SCROLLLOCK = 62 //get/set scroll lock state
PCL_CHNL_VOLUME_MUTE = 70 //get/set computer volume
Levels
PCL_LVL_MOUSE_X = 1 //get/set the X axis (horizontal) of the computer mouse :: <0-255>
PCL_LVL_MOUSE_Y = 2 //get/set the Y axis (vertical ) of the computer mouse :: <0-255>
PCL_LVL_BROWSER_SCALE = 3 //get/set the i!-PCLink/Web internal web browsers scale :: <0-255>
PCL_LVL_DISPLAY_RESOLUTION_X = 5 //get the computers horizontal resolution (i.e. 800 pixels)
PCL_LVL_DISPLAY_RESOLUTION_Y = 6 //get the computers vertical resolution (i.e. 600 pixels)
PCL_LVL_VOLUME_MASTER = 7 //get/set the computers master volume