###Function###
WinClose

###Description###
Closes a window.

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


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

###ReturnValue###
@@ReturnTable@@
Success:	1.
Failure:	0 if the window is not found.
@@End@@


###Remarks###
This function sends a close message to a window, the result depends on the window (it may ask to save data, etc.).  To force a window to close, use the <a href="WinKill.htm">WinKill()</a> function.  If multiple windows match the criteria, the window that was most recently active is closed.


###Related###
ProcessClose, WinActivate, WinExists, WinKill, WinMove, WinSetState, WinTitleMatchMode (Option)


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