The previous scenarios are dependent on the Client obtaining a valid handle to the telnet session.

To find the telnet session, the Client uses the following schemes:

Method 1

Normally, when the PROIV Client creates a child in the process the PROIV Client obtains the ID. This process ID is used when attempting to locate the main window of the telnet application just started. Once the main window is located, the window can be minimised, restored, or closed.

In some cases, however, when the telnet session is started, the telnet software starts a separate thread and kills the original program thread. In this case, the original process ID obtained when creating the telnet session will not be valid, and a handle to the main telnet window cannot be obtained. This prevents the telnet window from being manipulated (minimised, maximised, closed) by the PROIV Client.

Method 2

To overcome this, a second method of obtaining the window for the telnet session is attempted if the first method fails. This is to use the title of the telnet session window to obtain the window handle.

To locate the name of the telnet session follow these steps:

  1. On the PROIV Client main menu bar, select the Edit menu.

  2. Select the Default Properties menu options. Alternatively you can press Ctrl Shift I. The PROIV Properties Customisation window displays.

  3. Select the Terminal option.

  4. Locate the telnet session title in the Window Title field.

If a window with this title is found, then this is considered to be the telnet session window. The Client is then able to minimize, restore or close the telnet session. The entry for the Window Title and the telnet session window title must match identically for this to occur.

Many telnet emulation products allow the customisation of the window title, while others base this on the telnet configuration script loaded. If there is an option to change or customise the telnet title window, then it may be used to assure that there is a unique window title for the active telnet session. The resulting window title should then be placed in the Window Title field in the Client’s Terminal option.

If the window for the telnet session cannot be obtained by the two previous methods, the telnet session window will be unable to be minimised, restored, or automatically closed. Also, the "OFF" command will not shut down the telnet session. In this case, the user should use the normal windows interface steps to reposition the telnet window to the desired position, as well as to manually close the telnet session window.

Comment on this topic

Topic ID: 760051