PASSPORT Macro Interface
Automate Routine Host Functions, Streamline Navigation and More
View as a PDF
The Zephyr Macro Interface, originally designed for MS DOS and later transitioned to a 32-bit platform, is used whenever a PASSPORT macro is run. The Zephyr PASSPORT macro scripting language uses the VBSCRIPT.DLL provided by Microsoft®.
The PASSPORT PASSMAC.DLL provides the interface used for host access and is an ActiveX COM object. It is one single object and all methods and properties are accessed from this one object. The macro interface can be used by any application that can use an ActiveX COM object, including C++, VB, VB Script, Java Script., etc.
Documentation and sample source code are provided with PASSPORT in the on-line Technical Reference. The macro interface contains special event methods that can be used to tell when host screens are received or when keystrokes have been initiated by the end-user.
When to Use the PASSPORT Macro Interface
The Macro Interface is recommended when a lightweight screen scraping API is needed to access a single host session with simple event functions.
Cursor, Screen and Key Functions
- GetCursorColumn
- GetCursorRow
- GetOIA
- GetScreenSize
- GetString
- SendEscapeSequence (VT and SCO-ANSI Only)
- SendHostKeys
- SendString
- SetCursor
Dialog Box Functions
- MsgBox
- MsgBoxGetInput
- MsgBoxGetPassword
File, Print and Directory Functions
- AppendPSToFile
- ChDir
- ChDrive
- CurDir
- Kill
- MkDir
- PrintFile
- PrintPS
- ReceiveFile
- RmDir
- SendFile
- WritePSToFile
Flow of Control Statements
- Call
- If ... Then ... End If
- Sub ... End Sub
Miscellaneous
- Beep
- Dim
- Environ
- ExitAllSessions
- ExitSession
- GetPath
- GetVersion
- Rem
- Shell
Wait Functions
- Wait
- WaitForCursorPos
- WaitForHostUpdate
- WaitForNoX
- WaitForString
Session Information
- Count
- Item
- ItemHostIP
- ItemName
Session Control Functions
- Connect
- Disconnect
- RunConnect
Event Driven Functions
- OnScreenChanged
- OnHostKey
- OnLocalKey
Other VBScript Statements
There are many other VBScript statements that can be used in a PASSPORT macro, including those listed below.
- Const
- Do...Loop
- Erase
- Exit
- For...Next
- For Each...Next
- Function
- On Error
- Option Explicit
- Private
- Public
- Randomize
- ReDim
- Select Case
- Set
- While...Wend
Please refer to the Microsoft VBScript documentation for information on these statements if you want to use them.
|