Action
Opens a context menu and selects a menu item from the context menu.
Syntax
base.OpenContextMenuSelect(item, [pos])
Variable |
Description |
item |
The menu item to select. Can be either a top-level menu item or a menu item that can be found in a submenu. For selecting
a menu item from a submenu separate the menu item names with a slash. The item can contain the wildcards '?' (matches one
character) or '*' (matches 0 to many characters). ItemPath.
|
pos |
Optional: The coordinates to open the context menu relative to the element on which this function is called. Point.
|
Examples
' Open the context menu at the specified position and select the menu item 'Copy'
window.OpenContextMenuSelect("Copy", New Point(100, 50))
' Open the context menu by right clicking in the middle of the window and select the 'Mail Recipient' menu item in the submenu of the 'Send To' menu item
window.OpenContextMenuSelect("Send To/Mail Recipient")
' Open the context menu at the specified position and select the 4th menu item in the submenu of 'Send To' menu item
window.OpenContextMenuSelect("Send To/[3]", New Point(100, 50))