Show / Hide Table of Contents

Method ocr.PostClick


Overload

Posts mouse-click messages to the window, using coordinates in the found text (the first word).

public void PostClick(Coord x = default, Coord y = default, MButton button = MButton.Left, int word = 0)
Parameters
x  (Coord)

X coordinate in the word. Default - center. Examples: 10, ^10 (reverse), .5f (fraction).

y  (Coord)

Y coordinate in the word. Default - center.

button  (MButton)

Can specify the left (default), right or middle button. Also flag for double-click, press or release.

word  (int)

Word index offset from ocr.FoundWordIndex.

Exceptions
InvalidOperationException

area is Bitmap or Screen.

AuException

Failed to get UI element rectangle (when searched in a UI element).

Remarks

Does not move the mouse. Does not wait until the target application finishes processing the message. Works not with all elements.