Retrieves the text from a window.
WinGetText ( "title" [, "text"] )
| title | The title of the window to read. See Title special definition. |
| text | [optional] The text of the window to read. |
| Success: | Returns a string containing the window text read. |
| Failure: | Returns numeric 0 if no title match. |
Local $text = WinGetText("[CLASS:Notepad]", "")
MsgBox(0, "Text read was:", $text)