Jump to content

Recommended Posts

Posted (edited)

#AutoIt3Wrapper_UseX64=n
 
Global $oErrorHandler = ObjEvent("AutoIt.Error","ObjErrorHandler")
 
$oOBJ=ObjCreate("ScanX.CSSNLib")
$oOBJ.InitSlibLibrary("blah blah")
$oOBJ.ScanToFile(@DesktopDir & "\test.jpg")
 
Func ObjErrorHandler()
    ConsoleWrite("A COM Error has occured!" & @CRLF & @CRLF & _
            "err.description is: " & @TAB & $oErrorHandler.description & @CRLF & _
            "err.windescription:" & @TAB & $oErrorHandler & @CRLF & _
            "err.number is: " & @TAB & Hex($oErrorHandler.number, 8) & @CRLF & _
            "err.lastdllerror is: " & @TAB & $oErrorHandler.lastdllerror & @CRLF & _
            "err.scriptline is: " & @TAB & $oErrorHandler.scriptline & @CRLF & _
            "err.source is: " & @TAB & $oErrorHandler.source & @CRLF & _
            "err.helpfile is: " & @TAB & $oErrorHandler.helpfile & @CRLF & _
            "err.helpcontext is: " & @TAB & $oErrorHandler.helpcontext & @CRLF _
            )
EndFunc

Thanks for your help JohnOne! :D

Edited by chachew
Posted

  On 10/28/2011 at 3:16 PM, JohnOne said:

Well I was just along for the ride.

Glad you got there.

Me too, it was frustrating me and i was determined to get this figured out.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...