Method elm.MouseClick
Overload
Clicks this UI element.
public MRelease MouseClick(Coord x = default, Coord y = default, MButton button = MButton.Left, int scroll = 0)
Parameters
x (Coord)
X coordinate in the bounding rectangle of this UI element. Default - center. Examples: |
y (Coord)
Y coordinate in the bounding rectangle of this UI element. Default - center. |
button (MButton)
Which button and how to use it. |
scroll (int)
If not 0, the function at first calls elm.ScrollTo. If it succeeds, waits scroll number of milliseconds (let the target app update the UI element rectangle etc). Valid values are 0-5000. Tip: if does not scroll, try to find the UI element with flag UIA. |
Returns
Exceptions
AuException
Failed to get UI element rectangle in container window (elm.WndContainer). |
Exception
Exceptions of mouse.clickEx. |
Remarks
Calls mouse.clickEx. To get rectangle in window, uses elm.GetRect with intersecttrue
.