Jump to content

simply explain error in _ie - (Moved)


Recommended Posts

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 

; 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

  • Moderators

@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 by JLogan3o13

"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

  • Moderators

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

  • Developers
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 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

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
 Share

  • Recently Browsing   0 members

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