Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
The doMenu
command performs the action specified by the item name and menu name just as if the user chose the item directly from the menu.
without dialog
bypasses the dialog box that would normally appear after the commands Delete Stack and Convert Stack, and, when a background field is selected, after Cut Field and Clear Field.
with keys
chooses the named menu command with the shift, option, and/or Command keys pressed.
To determine from a script which keys were specified, look at param(6)
of the original command.
HyperCard sends the doMenu
command as a message to the current card when the user selects a menu item. ItemName
is the exact name of the menu item selected, and menuName
is the exact name of the menu that contains the menu item. To handle the doMenu
message, use this form:
Note: A doMenu
handler can override a menuMessage
.
A text expression that evaluates to the name of a menu item on one of HyperCard’s menus (or a menu created by the user).
For example:
A text expression that evaluates to the name of one of HyperCard’s menus or of a menu created by the user.
For example: