###Function###
WinGetPos

###Description###
Retrieves the position and size of a given window.

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


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

###ReturnValue###
@@ReturnTable@@
Success:	a 4-element array containing the following information:
		$aArray[0] = X position
		$aArray[1] = Y position
		$aArray[2] = Width
		$aArray[3] = Height
Failure:	sets the @error flag to non-zero if the window is not found.
@@End@@


###Remarks###
<a href="WinGetPos.htm">WinGetPos()</a> returns negative numbers such as -32000 for minimized windows, but works fine with (non-minimized) hidden windows.
If the window title "Program Manager" is used, the function will return the size of the desktop.  If multiple windows match the criteria, the most recently active window is used.


###Related###
WinGetClientSize, WinGetState, WinMove


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