TextCapture Method (AnyWin)

Class

AnyWin class.

Action

Returns the text in the client area of the window.

The TextCapture() method captures text properly against applications that implement GDI+ or glyphs.

Capturing text in combo boxes may append the text character "6". This is because the drop-down arrow for a combo box is the Marlett font drop-down arrow text symbol, which is the number "6" for most other fonts.

Syntax

result = anyWin.TextCapture([captureRectangle])
Variable Description
result String.
captureRectangle Optional: the defined rectangular region where the text will be captured, relative to the window's coordinates. Rectangle.

Examples

RECT captureRect = {0, 20, 300, 200}
print(TestApplication.TextCapture(captureRect))
print(TestApplication.TextCapture())