In fact, here is an example...

code:
; Created with the AutoItX ActiveX component.
; Get it at: http://www.hiddensoft.com/AutoIt/

$objAutoIt = CreateObject("AutoItX.Control")
If @ERROR
"AutoIt Control not instantiated..." ?
Copy @SCRIPTDIR+"\AutoItX.dll" %WINDIR%
If @INWIN = "1"
Shell "%COMSPEC% /c Regsvr32 /s %WINDIR%\AutoItX.dll"
Else
Shell "%COMSPEC% /c %WINDIR%\System\Regsvr32 /s %WINDIR%\AutoItX.dll"
EndIf
$objAutoIt = CreateObject("AutoItX.Control")
If @ERROR "Unable to instantiate control: fatal error" Exit 1 EndIf
endif

If $objAutoIt
$objAutoIt.BlockInput("On")
; Do stuff here...
$objAutoIt.BlockInput("Off")
EndIf