PASSPORT Knowledge Base
Macros

Date Published: October 21, 2008

Title

Closing PASSPORT window automatically after host session ended

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

Closing PASSPORT window automatically after host session ended

Solution

This can be done by using the ExitSession() macro command along with the command that ends the telnet session (like logoff or exit).  An example macro would be:
 

Sub ZMain()

Dim Text, ret

SendHostKeys ("logoff<ENTER>")

ret = WaitForHostUpdate(10)

ret = WaitForHostUpdate(10)

ret = WaitForHostUpdate(10)

ExitSession()

End Sub
 

This macro can be mapped to a key, toolbar, button bar, etc. to trigger this sequence.

More Information

Keywords

close, window, automatically, after session ended, close session