###User Defined Function###
_GUICtrlButton_Click

###Description###
Simulates the user clicking a button

###Syntax###
#include <GuiButton.au3>
_GUICtrlButton_Click ( $hWnd )


###Parameters###
@@ParamTable@@
$hWnd
	Control ID/Handle to the control
@@End@@

###ReturnValue###
None.


###Remarks###
If the button is in a dialog box and the dialog box is not active, the <a href="_GUICtrlButton_Click.htm">_GUICtrlButton_Click()</a> might fail.
To ensure success in this situation, call the WinActivate() function to activate the dialog box before sending the <a href="_GUICtrlButton_Click.htm">_GUICtrlButton_Click()</a> to the button.


###Related###


###See Also###
@@MsdnLink@@ BM_CLICK


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