PASSPORT Knowledge Base
Miscellaneous
Date Published: July 28, 2003
Date Updated: March 10, 2008
Title
Message To Display Before Session
Product
PASSPORT PC to Host, PASSPORT Web to Host
Emulation Types
TN3270, TN5250, VT, SCO ANSI, Wyse 60
Issue
Is it possible to display a message to users before a session starts?
Solution
For PASSPORT PC to Host:
You can create a macro which contains the message and assign the macro to the session
as a startup macro.
- Copy the following text into Notepad:
Sub ZMain()
MsgBox "Message",,"Title"
End Sub
- Modify the Message and Title with your custom message and title.
- Save the file with a .zmc extension
- Open your session profile and choose the Miscellaneous tab.
- Enable the Startup Macro option and choose the macro that was created above from the drop-down list.
For PASSPORT Web to Host:
Write a simple HTML document which contains the message with a hyperlink at the bottom.
Users would be directed to the new HTML file and the hyperlink would point to the
PASSPORT session,
or
Create a macro which contains the message and assign the macro to the session as
a startup macro. Follow the steps below:
- Start the PASSPORT Web to Host Administrator.
- Expand 3270 Display, 5250 Display or VT Display (depending on the emulation type you are using)
- Right-click Macros and choose New.
- Copy the following into the Add Macro window:
Sub ZMain()
MsgBox "Message",,"Title"
End SubModify the Message and Title with your custom message and title.
- Close the Add Macro window, save and name the new macro.
- Open your session profile and choose the Miscellaneous tab.
- Enable the Startup Macro option and choose the macro that was created above from the drop-down list.
- Select OK to save or Connect to test.
More Information
-
Writing a Macro
-
Scheduling a Macro to Run at a Specific Time
Keywords
macro, message, start, startup