Using AutoIt-Object, you cann add the object but somehow calls to functions fail. Probably ScriptControl expects a Typelib which we do not provide. $oScript = ObjCreate("ScriptControl") #include "AutoItObject.au3" Global $oError = ObjEvent("AutoIt.Error", "_ErrFunc") Func _ErrFunc() ConsoleWrite("! COM Error ! Number: 0x" & Hex($oError.number, 8) & " ScriptLine: " & $oError.scriptline & " - " & $oError.windescription & @CRLF) Return EndFunc ;==>_ErrFunc