Executes any of the PASSPORT menu commands. This function is useful if you want to use any of the Cut, Copy and Paste menu commands. If using multiple instances of ExecMenuCmd, it is recommended that execution of any menu command that displays a dialog box be executed last since the end-user must click on the OK or Cancel button in order for the macro to continue running.
ret = ExecMenuCmd (String)
ret | Integer, output |
0= OK | |
Non zero = Error | |
string | String, input |
This string specifies a text string that indicates which menu command to execute. |
This macro function can be used for all terminal emulation types. However, some menu commands are only available for certain emulation types. For example, the Options>TN3270 menu command is only available for TN3270 terminal emulation. Also, some menu commands are only available for PASSPORT PC TO HOST whereas other menu commands are only available for PASSPORT WEB TO HOST.
Calling this function multiple times may result in multiple pop-up dialog boxes.
Sub ZMain()
ExecMenuCmd ("Edit-Copy")
End Sub
String parameter values:
String to Use | Comments |
Toggle Menu | PASSPORT PC TO HOST only |
File-New | PASSPORT PC TO HOST only |
File-Open | PASSPORT PC TO HOST only |
File-Save | |
File-Save As | PASSPORT PC TO HOST only |
File-Options | PASSPORT PC TO HOST only |
File-Security | PASSPORT PC TO HOST only |
File-Save Session Layout | PASSPORT PC TO HOST only |
File-Page Setup | |
File-Print | |
File-Print Multiple Screens | |
File-Exit | |
File-Exit All | |
Edit-Cut | |
Edit-Copy | |
Edit-Copy Append | |
Edit-Copy Graph | |
Edit-Paste | |
Edit-Paste Continue | |
Edit-Clear | |
Edit-Select All | |
View-Toolbar | |
View-Status Bar | |
View-Keypad | PASSPORT PC TO HOST only |
View-Button Bar 1 | PASSPORT WEB TO HOST only |
View-Button Bar 2 | PASSPORT WEB TO HOST only |
View-Button Bar 3 | PASSPORT WEB TO HOST only |
View-Keyboard Layout | |
View-Hotspots | |
View-Save Session Layout | PASSPORT WEB TO HOST only |
Communication-Setup | PASSPORT PC TO HOST only |
Communication-Connect/Disconnect | PASSPORT PC TO HOST only |
Communication-Connect | |
Communication-Disconnect | |
Communication-Conn Log | |
Communication-Diagnostics | |
Communication-SSL Server Certificate | PASSPORT WEB TO HOST only |
Communication-SSH Options | PASSPORT WEB TO HOST only |
Options-Button Bars | PASSPORT WEB TO HOST only |
Options-Colors | |
Options-Cursor | |
Options-Edit | |
Options-Fonts | |
Options-Graphics | |
Options-Hotspots | |
Options-Keyboard | |
Options-Keypad | PASSPORT PC TO HOST only |
Options-Macro | |
Options-Mouse | |
Options-SCO | |
Options-Toolbar | |
Options-Transfer | |
Options-TN3270 | |
Options-TN5250 | |
Options-VT | |
Options-Window Title | |
Options-Wyse | |
Options-Miscellaneous | |
Transfer-Send | |
Transfer-Receive | |
Transfer-FTP | |
Macro-Run | |
Macro-Stop | |
Macro-Record | |
Macro-End Record | |
Macro-Edit | |
Macro-Run/Stop | |
Macro-Record/End Record | |
Macro-Pause/Continue | |
Macro-Insert Wait | |
Macro-Insert Prompt | |
Macro-Run User1 | |
Macro-Run User2 | |
Macro-Run User3 | |
Macro-Run User4 | |
Macro-Run User5 | |
Macro-Run User6 | |
Help-Contents and Index | |
Help-Online Support | PASSPORT WEB TO HOST only |
Help-Knowledge Base | |
Help-Keyboard Layout | |
Help-About |