Macro Sample Library Overview
PASSPORT PC TO HOST, PASSPORT WEB TO HOST
TN3270, TN5250, VT, SCO ANSI, Wyse 60
The macro sample library contains some commonly used functions, which Zephyr has published for any customer to use. Below is some general information regarding PASSPORT macro scripting technologies and the samples:
Macro Types:
There are two different macro file formats used by PASSPORT. Macros recorded with the Macro®Record menu command are stored in a .ZMC macro file. You may also write your own macros using this format. The Microsoft VBScript scripting language is used for this type of macro, which is the same VBScript language used in Microsoft Internet Explorer. This is a simple API interface with the PASSPORT terminal emulator and all available functions are documented in the Macro Command Index. Since these are text-based files, Notepad.exe or any text editor may be used to edit them. There are several sample macros that are included with PASSPORT during installation:
app2file.zmc – Appends the screen contents to a specified file
exitsess.zmc – Closes the current emulation session
printscr.zmc – Prints the contents of the current screen
prt2file.zmc – Prints the screen to a specified file
ssattn.zmc – Simulates the Attention host key
prt2scr.zmc – Prints two screens on one page
Attachmate macros converted to work with PASSPORT have the .ZAM file extension, although new macros can also be written in this format. The SAX Basic Control is used for Sax Basic language with this type of macro, which is VBA (Visual Basic for Applications) compatible. The PASSPORT Object interface is used to communicate with the PASSPORT terminal emulator, which is an API that is compatible with Attachmate EXTRA! Objects. Documentation on the SAX Basic language is available from Zephyr and the PASSPORT Object interface is documented in the PASSPORT Object Toolkit, which is available free of charge to customers who license at least 500 units of PASSPORT via an annual subscription license.
Macros in either format may be run from the Macro®Run menu command or mapped to the keyboard, keypad, toolbar, hotspot or mouse click. The .ZMC macro format is actually a subset of the .ZAM macro
Macros in either format may be run from the Macro®Run menu command or mapped to the keyboard, keypad, toolbar, hotspot or mouse click.
The .ZMC macro scripting language is a subset of the .ZAM macro scripting language.
It's possible to run normal .ZMC (VBScript) commands inside a .ZAM macro.
Within a .ZAM macro, you can run a routine from another
macro by including the macro file containing the routine, using the
directive:
'$include: "filename"
Note: .ZMC macros are not capable of this.
macro, sample, library