faustf Posted July 5, 2018 Share Posted July 5, 2018 hi guys i not have a problem but maybe similar , and i f possible if someone can explain me or send me a link for explain because not find nothing . this is my scenario i have a iexplorer open in a pageweb if not active a _IEErrorHandlerRegister(_User_ErrFunc) return me error "C:\Program Files\AutoIt3\Include\IE.au3" (2072) : ==> The requested action with this object has failed.: $iTemp += $oTemp.offsetLeft $iTemp += $oTemp^ ERROR but if active _IEErrorHandlerRegister(_User_ErrFunc) the script work , tell me the x and y is equal 0 but work , also if return this --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop C:\Users\SviluppoGest\Desktop\da-cancellare\_IEAttach.au3 (2072) : ==> COM Error intercepted ! err.number is: 0x80020006 err.windescription: Unknown name. err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 2072 err.retcode is: 0x00000000 C:\Users\SviluppoGest\Desktop\da-cancellare\_IEAttach.au3 (2073) : ==> COM Error intercepted ! err.number is: 0x80020006 err.windescription: Unknown name. err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 2073 err.retcode is: 0x00000000 C:\Users\SviluppoGest\Desktop\da-cancellare\_IEAttach.au3 (2084) : ==> COM Error intercepted ! err.number is: 0x80020006 err.windescription: Unknown name. err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 2084 err.retcode is: 0x00000000 C:\Users\SviluppoGest\Desktop\da-cancellare\_IEAttach.au3 (2085) : ==> COM Error intercepted ! err.number is: 0x80020006 err.windescription: Unknown name. err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 2085 err.retcode is: 0x00000000 +>11:09:42 AutoIt3.exe ended.rc:0 +>11:09:42 AutoIt3Wrapper Finished. but why work in second case?? this is a script expandcollapse popup; Attach to a browser with "AutoIt" in its title, display the URL #include <IE.au3> #include <MsgBoxConstants.au3> _IEErrorHandlerRegister(_User_ErrFunc) Local $oIE = _IECreate("www.autoitscript.com") $oIE = _IEAttach("AutoIt") ;$oIE = _IEAttach("Drawing Tools (B)") Local $x= _IEPropertyGet($oIE, "browserx") Local $y = _IEPropertyGet($oIE, "browsery") MsgBox($MB_SYSTEMMODAL, "The URL", $x) MsgBox($MB_SYSTEMMODAL, "The URL",$y) MouseMove ($x,$y) Func _User_ErrFunc($oError) ; Do anything here. ConsoleWrite(@ScriptFullPath & " (" & $oError.scriptline & ") : ==> COM Error intercepted !" & @CRLF & _ @TAB & "err.number is: " & @TAB & @TAB & "0x" & Hex($oError.number) & @CRLF & _ @TAB & "err.windescription:" & @TAB & $oError.windescription & @CRLF & _ @TAB & "err.description is: " & @TAB & $oError.description & @CRLF & _ @TAB & "err.source is: " & @TAB & @TAB & $oError.source & @CRLF & _ @TAB & "err.helpfile is: " & @TAB & $oError.helpfile & @CRLF & _ @TAB & "err.helpcontext is: " & @TAB & $oError.helpcontext & @CRLF & _ @TAB & "err.lastdllerror is: " & @TAB & $oError.lastdllerror & @CRLF & _ @TAB & "err.scriptline is: " & @TAB & $oError.scriptline & @CRLF & _ @TAB & "err.retcode is: " & @TAB & "0x" & Hex($oError.retcode) & @CRLF & @CRLF) EndFunc ;==>_User_ErrFunc thankz at all Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 5, 2018 Moderators Share Posted July 5, 2018 (edited) @faustf you have been around far too long to not know better than to post a question in the Examples forum. Use some common sense next time. Edited July 5, 2018 by JLogan3o13 FrancescoDiMuro 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 5, 2018 Moderators Share Posted July 5, 2018 Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
faustf Posted July 6, 2018 Author Share Posted July 6, 2018 (edited) sorry @JLogan3o13, i dont understund this is a problem or close , why i must move it in example script ? Edited July 6, 2018 by faustf Link to comment Share on other sites More sharing options...
Developers Jos Posted July 6, 2018 Developers Share Posted July 6, 2018 (edited) 1 hour ago, faustf said: sorry @JLogan3o13, i dont understund this is a problem or close , why i must move it in example script ? No, You posted it in the Examples forum and @JLogan3o13 moved it for you to this forum, as you also clearly can read in the move post! Jos Edited July 6, 2018 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
faustf Posted July 8, 2018 Author Share Posted July 8, 2018 o sorry i dont know how is possible happen , ask forgiveness Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now