ActiveControlPick

Selects a control in an application that supports Microsoft Active Accessibility. Command buttons, option buttons, check boxes, group boxes, list boxes, and text fields are examples of controls. Only controls within the currently active window are available.

Some programs require Active Accessibility to select controls. Most applications do not require Active Accessibility and some system environments do not support it. Therefore, you should only use the ActiveControlPick command for applications that require Active Accessibility for control selection. For all other programs, use the ControlPick command or use the SendKeys command to press the control's 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

ActiveControlPick "menuItem"

Argument Description
menuItem Specifies the identifier assigned to the control to be selected. This value is typically the control's text label, and is case sensitive. Do not use a control's accelerator keys for this value. If the label includes an ampersand (&) prefixing an access key, do not include it.

Example

This example presses the OK button in the active window.

ActiveControlPick "OK"

Notes

  • Generally, toolbar buttons, property sheet tabs, and taskbar buttons cannot be selected using ActiveControlPick.
  • A static text field, such as a text box label, can be selected only if it has an access key (underlined letter).