Show / Hide Table of Contents

Class ocr

OCR functions. Recognizes text on screen or in image, gets word positions, finds text, clicks found words.

public class ocr

Namespace: Au
Assembly: Au.dll
Inheritance
object
ocr

Properties

Name Description
FoundTextRange

Range of found text in ocr.TextForFind.

FoundWordIndex

Index (in ocr.Words) of the first found word. If did not search for text (for example called ocr.recognize), this property is 0.

Text

Recognized text.

TextForFind

Recognized text as single line. Any whitespace between words is replaced with single space. ocr.find and similar functions search in this text.

Words

Recognized words (text, rectangle, etc).

engine

Gets or sets the default OCR engine.

Methods

Name Description
GetRect(bool, int)

Gets the rectangle of the found word.

MouseClick(Coord, Coord, MButton, int)

Clicks the found text (the first word).

MouseClickD(Coord, Coord, int)

Double-clicks the found text (the first word).

MouseClickR(Coord, Coord, int)

Right-clicks the found text (the first word).

MouseMove(Coord, Coord, int)

Moves the mouse to the found text (the first word).

PostClick(Coord, Coord, MButton, int)

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

find(IFArea, string, OcrFlags, double, IOcrEngine, int)

Performs OCR (text recognition) and finds text in results.

find(Seconds, IFArea, string, OcrFlags, double, IOcrEngine, int)

Performs OCR (text recognition) and finds text in results. Can wait and throw NotFoundException.

recognize(IFArea, OcrFlags, double, IOcrEngine)

Performs OCR (text recognition).

wait(Seconds, IFArea, string, OcrFlags, double, IOcrEngine, int)

Performs OCR (text recognition) and finds text in results. Waits until found.

waitNot(Seconds, IFArea, string, OcrFlags, double, IOcrEngine, int)

Performs OCR (text recognition) and waits until the specified text does not exist in results.