MenuPick
Selects the specified menu or menu item, visible in the active window, by executing the menu's access keys.
Syntax
MenuPick "menuItem"
Argument | Description |
---|---|
menuItem | The name (as displayed in the menu) of the menu or menu item to open. This value is case-sensitive. |
Example
This example displays the File menu and then selects the Save As menu item.
MenuPick "File"
Wait 1
MenuPick "Save As"
Notes
- If the menu name contains an ellipsis, do not include it in the menuItem value.
- You may need to insert a Wait command between consecutive MenuPick commands to ensure that the first menu appears before selecting one of its entries.