PASSPORT Knowledge Base
Macros

Date Published: March 15, 2010

Title

Macro Sample Library Overview

Product

PASSPORT PC TO HOST, PASSPORT WEB TO HOST

Emulation Types

TN3270, TN5250, VT, SCO ANSI, Wyse 60

Issue

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:

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

 

More Information

Keywords

macro, sample, library