Launch Session in Minimized Mode
PASSPORT Web to Host
TN3270, TN5250, VT, SCO ANSI, Wyse 60
I need a handle for the IE window for the session I am using in order to control how it appears (launch minimized). In Extra!, I do it using the following:
Appid = Shell(<Extra! file> & " " & <Extra! session file>, vbMinimizedFocus)
How can I do this with Passport?
This can done using by writing a .ZAM macro (using the PASSPORT Object API) along with the use of the Shell command. See below:
Sub Main()
Dim Sessions As Object
Dim System As Object
Set System = CreateObject("passport.System") ' Gets the system object
If (System is Nothing) Then
Msgbox "Could not create the PASSPORT System object. Stopping macro playback."
STOP
End If
Set Sessions = System.Sessions
If (Sessions is Nothing) Then
Msgbox "Could not create the Sessions collection object. Stopping macro playback."
STOP
End If
Appid = Shell("""c:\Program Files\Internet Explorer\iexplore.exe""" & "http://servername/pecadmin/Eclient/Ecomes.asp?sessionprofile=3270dsp/Sessions/session", vbMinimizedFocus)
End Sub
In order to make use of the PASSPORT Object Layer, you must be using a license code that is enabled for it.
You will also need 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
launch, session, minimized, mode, IE, Window, appid, shell