###Function###
BlockInput

###Description###
Disable/enable the mouse and keyboard.

###Syntax###
BlockInput ( flag )


###Parameters###
@@ParamTable@@
flag
	1 = Disable user input
	0 = Enable user input
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	1.
Failure:	0. Already Enable or #RequireAdmin not used.
@@End@@


###Remarks###
The table below shows how <a href="BlockInput.htm">BlockInput()</a> behavior depends on the Windows version; however, pressing <em>Ctrl+Alt+Del</em> on any platform will re-enable input due to a Windows API feature.

@@ParamTable@@
<strong><em>Operating System</strong></em>
	<strong><em>"<a href="BlockInput.htm">BlockInput()</a>" Results</strong></em>
Windows XP
	User input is blocked and AutoIt can simulate mouse and keyboard input.  See remarks below for an issue with Windows XP SP1.
Windows Vista and above
	User input is blocked and AutoIt can simulate mouse and keyboard if #RequireAdmin is used.
@@End@@

A Windows hotfix was released for Windows XP SP1 that contained a bug that prevents the Alt keystroke from being sent (via the <a href="Send.htm">Send()</a> function) while <a href="BlockInput.htm">BlockInput()</a> is active.  The Windows bug is fixed in Windows XP SP2 and newer.

<a href="BlockInput.htm">BlockInput()</a> only affects user-input.  Input from functions like <a href="Send.htm">Send()</a> or <a href="MouseMove.htm">MouseMove()</a> still work.


###Related###
Send


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