Starting Multiple Sessions
PASSPORT PC to Host
TN3270, TN5250, VT, SCO ANSI, Wyse 60
I want to write an application to start multiple instances of PASSPORT using the default configuration file PASSPORT.ZWS. What do I need to do to start more than one session?
In order to start multiple PASSPORT sessions, you must create a separate configuration file for each session that you want to start. Below is an example of the code used to open multiple sessions with the PASSPORT Object layer (PASSPORT version 2002 or higher is required).
Below is sample VBScript code that opens multiple PASSPORT sessions:
Function Sessions_Open() Dim Sys, Sess Set Sys = CreateObject("PASSPORT.System") MsgBox "Press to open session named SESS1" Set Sess = Sys.Sessions.Open("C:\Program Files\PASSPORT\SESS1.ZWS") If Sess Is Nothing Then MsgBox "Failed to open session SESS1" Else MsgBox "Session SESS1 opened successfully" End If MsgBox "Press to open session named SESS2" Set Sess = Sys.Sessions.Open("C:\Program Files\PASSPORT\SESS2.ZWS") If Sess Is Nothing Then MsgBox "Failed to open session SESS2" Else MsgBox "Session SESS2 opened successfully" End If MsgBox "Press to open session named SESS3" Set Sess = Sys.Sessions.Open("C:\Program Files\PASSPORT\SESS3.ZWS") If Sess Is Nothing Then MsgBox "Failed to open session SESS3" Else MsgBox "Session SESS3 opened successfully" End If End Function |
In order to make use of the PASSPORT Object Layer, you must be using a license code that is enabled for it.
It is important to note that, in order to make use of the PASSPORT Object Layer, the latest Microsoft Visual Basic run-time files must be installed and registered on any workstation that will utilize it. For more information or to download the run-time files, please visit the following page on the Microsoft website: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q192461
api, object, screen, application, integration, keystrokes, automation, session, multiple