###Function###
WinActive

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

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


###Parameters###
@@ParamTable@@
title
	The title of the window to check. See <a href="../intro/windowsadvanced.htm">Title special definition</a>.
text
	[optional] The text of the window to check.
@@End@@


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


###Remarks###
None.


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


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