Picks the specified item from a popup menu.
ActiveMenuSelect(wWindow, sMenuItem)
Variable | Description |
---|---|
wWindow | The name of the window which triggered the popup menu. WINDOW. |
sMenuItem | The popup-menu item to select. STRING. |
This function is supported only in scripts that use the Classic Agent.
The following shows how to select MenuItem "Item 1" from the popup Menu which is triggered by clicking on button "MyButton":
MyButton.Click() ActiveMenuSelect(MyButton, "Item 1")