Method ocrFinder.Wait
Overload
Performs OCR (text recognition) and finds text in results. Waits until found.
public ocr Wait(Seconds timeout, IFArea area)
Parameters
timeout (Seconds)
Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout. |
area (IFArea)
On-screen area or image:
|
Returns
ocr
Returns an ocr object that contains the word index and can click it etc. On timeout returns |
Exceptions
TimeoutException
timeout time has expired (if > 0). |
AuWndException
Invalid window handle (the area argument), or the window closed while waiting. |
ArgumentException
An argument is/contains a |
AuException
Something failed. |
Remarks
The function captures image from screen or window (unless area is Bitmap) and passes it to the OCR engine (calls IOcrEngine.Recognize). Then finds the specified text in results. If found, creates and returns an ocr object that contains results.
The speed depends on engine, area size and amount of text.