###Function###
WinGetText

###Description###
Retrieves the text from a window.

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


###Parameters###
@@ParamTable@@
title
	The title/hWnd/class of the window to get the text. See <a href="../intro/windowsadvanced.htm">Title special definition</a>.
text
	[optional] The text of the window to get the text. Default is an empty string. See <a href="../intro/windowsbasic.htm#specialtext">Text special definition</a>.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	a string containing the window text read.
Failure:	"" if the window is not found.
@@End@@


###Remarks###
Up to 64KB of window text can be retrieved.  <a href="WinGetText.htm">WinGetText()</a> works on minimized windows, but only works on hidden windows if you've set <a href="AutoItSetOption.htm">AutoItSetOption</a>("WinDetectHiddenText", 1)
If multiple windows match the criteria for <a href="WinGetText.htm">WinGetText()</a>, the information for the most recently active match is returned.
Use <a href="WinGetText.htm">WinGetText</a>("[active]") to get the active window's text.


###Related###
ControlGetText, WinGetClassList, WinGetTitle


###Example###
@@IncludeExample@@
