ActiveMenuPick
Selects the specified menu or menu item, visible in the active window, by executing the menu's access keys. This command works only in applications that support Microsoft Active Accessibility.
Some programs require Active Accessibility to select menus. Most applications do not require Active Accessibility and some system environments do not support it. Therefore, you should only use the ActiveMenuPick command for applications that require Active Accessibility for menu selection. For all other programs, use the MenuPick command or use the SendKeys command to press an accelerator key.
Note
This command works only for legacy Dragon version 5 commands that have been imported into version 9. It will not work in commands that you create using the MyCommands editor.
Syntax
ActiveMenuPick "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.
ActiveMenuPick "File"
ActiveMenuPick "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.
- A static text field, such as a text box label, can be selected only if it has an access key (underlined letter).