###Function###
WinActive

###Description###
Checks to see if a specified window exists and is currently active.

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


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

###ReturnValue###
@@ReturnTable@@
Success:	the handle to the window if it is active.
Failure:	0 otherwise.
@@End@@


###Remarks###
None.


###Related###
WinExists, WinTitleMatchMode (Option), WinWait, WinWaitActive, WinWaitClose, WinWaitNotActive


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