Hide PASSPORT Window When Macro Run
PASSPORT PC to Host, PASSPORT Web to Host
TN3270, TN5250, VT, SCO ANSI, Wyse 60
How can I hide the PASSPORT window when the macro runs?
You can use the Visible property available with our Object API in your .zam macro to do this. A sample .zam macro below:
Sub Main()
Dim Sys, Sess
Set Sys = CreateObject("PASSPORT.System")
Set Sess = Sys.ActiveSession
Set MyScreen = Sess.Screen
Sess.Visible = False
MyScreen.SendKeys "tso<ENTER>"
MyScreen.WaitHostQuiet(2000)
MyScreen.SendKeys "userid<ENTER>"
MyScreen.WaitHostQuiet(2000)
MyScreen.SendKeys "password<ENTER>"
MyScreen.WaitHostQuiet(2000)
MyScreen.SendKeys "<ENTER>"
MyScreen.WaitHostQuiet(2000)
Sess.Visible = True
End Sub
In order to make use of the PASSPORT Object Layer, you must be using a license code that is enabled for it.
run, macro, visible, hide, window, screens, commands, executed