Jump to content
Sign in to follow this  
Guest bonns

Read text in a window

Recommended Posts

Guest bonns

Hi !

i would like to know how i can proceed to read the content of a window ....

any advice ?

thank you.

Share this post

Link to post
Share on other sites


Straight from the help file

WinGetText ( "title" [, "text"])


title The title of the window to read.

text [optional] The text of the window to read.

Return Value

Returns a string containing the window text read.


Up to 64KB of window text can be retrieved. WinGetText works on minimized windows, but only works on hidden windows if you've set AutoItSetOption("WinDetectHiddenText", 1)

If multiple windows match the criteria for WinGetText, the information for the most recently active match is returned.

Use WinGetText("") to get the active window's text.


WinGetTitle, ControlGetText


$text = WinGetText("Untitled -", "")

MsgBox(0, "Text read was:", $text)


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.