Launching WindX from a Browser |
|
One important feature of the Client Server interfaces is the ability to allow WindX to be initiated directly from a browser. This feature allows you to create Web pages that can directly launch a client connection to a host system.
To accomplish this, a few entries need to be added into the Client Windows Registry. These Registry entries enable the automatic launching of a client connection in response to initiating an URL request whose prefix is "windx://".
The general format of the URL request is:
windx://server/port#/prog args
If the server is running the Application Server:
windx://APS:server:port#/prog args
If the server is running the PxPlus Simple Client Server:
windx://server:scs/port#/prog args
If you want to connect to the server using SSH:
windx://server:sshPPPP/userid/password
Where:
|
server |
IP address/name of the server running the host program |
|
port# |
Port address being monitored by the above |
|
prog args |
Name of the program to run and any associated arguments replacing all spaces with + or %20 |
|
PPPP |
Port to use if not the standard port 22 |
|
userid |
Optional User ID to sign on with |
|
password |
Optional password to use |
Example:
windx://myhost/10000/*winstar + -arg + order + pizza/pizza.en
windx://myhost/10000/*winstar%20-arg%20order%20pizza/pizza.en
Optionally, when using the NTHost or Simple CS Server, the port# can have a suffix of ";Show" appended to it. This will cause the main window to be displayed as opposed to minimized when the application launches. Normally, you will use this option when you want to run a simple text style application that will run from the main window.
To provide backward compatibility where Web pages may not have a type specification, the system will first try *NTHost but is able to detect and switch to either a Simple CS or Application Server interface depending on the host service provided.
The Windows registry entries required to make this work are as follows:
HKEY_CLASSES_ROOT\windx | |
|
<default> = "URL:windx" |
HKEY_CLASSES_ROOT\windx\shell | |
|
<default> = "" |
HKEY_CLASSES_ROOT\windx\shell\open | |
|
<default> = <none> |
HKEY_CLASSES_ROOT\windx\shell\open\command | |
|
<default> = "c:\\pxplus\\pxplus.exe -MN *url -arg %1" |
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\URL\Prefixes | |
|
windx. = "windx://" |