OpenContextMenu Method

Class

AnyWin class.

Action

Opens a context menu at the position specified by the parameters. If no parameter is defined, then a right-click at the center of the control is replayed. If only one parameter is specified, a right-click at the given horizontal position, and at the middle of the height of the control, is replayed.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

OpenContextMenu ([x, y])
Variable Description
x Optional: The horizontal coordinate to open the context menu relative to the control on which this function is called. INTEGER.
y Optional: The vertical coordinate to open the context menu relative to the control on which this function is called. INTEGER.