Method Reference
WinGetClassList
Retrieves the classes from a window
WinGetClassList "title" [, "text"]
Parameters
title | The title of the window to read. |
text | Optional: The text of the window to read. |
Return Value
Success: | Returns a string containing the window classes read. |
Failure: | Returns numeric 1 and sets oAutoIt.error to 1 if no window matches the criteria. |
Remarks
Class names are linefeed separated. WinGetClassList works on both minimized and hidden windows. Up to 64KB of text can be retrieved. If multiple windows match the criteria, the classes are read from the most recently active window.
Related
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control") text = oAutoIt.WinGetClassList("Untitled -", "") WScript.Echo "Text read was:" & text