Pick Method


Menu and MenuItem.


Selects the menu or menu item.


object.Pick ( )


Pick selects the menu or menu items by simulating mouse moves and clicks on the menu bar and menus. If the menu item does not exist or is disabled, Pick waits for the window time-out period (set with the OPT_WINDOW_TIMEOUT option) before raising an exception.

Pick() has a default minimum keyboard delay of 1 millisecond. This is designed to eliminate timing errors and to improve recognition of client server application’s windows (childwin, dialogbox, for example) after picking a menu item. This also means that you do not need to set keyboard or mouse delays in scripts, option sets, or under Agent Options to try to prevent some of these timing errors.


TextEditor.Search.Find.Pick ()