Opened 5 years ago

Last modified 4 years ago

#3738 closed Bug

Com error in _IEAttach with embedded IE — at Version 4

Reported by: Nine Owned by: mLipok
Milestone: 3.3.15.4 Component: Standard UDFs
Version: 3.3.14.5 Severity: None
Keywords: Cc:

Description (last modified by mLipok)

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>

$oIE = _IECreateEmbedded ()
GUICreate("Embedded Web control Test", 640, 580)
GUICtrlCreateObj($oIE, 10, 40, 600, 360)
GUISetState()
_IENavigate ($oIE, "http://www.autoitscript.com")
$oIEatt = _IEAttach ("Embedded","embedded")
MsgBox ($MB_SYSTEMMODAL,"",IsObj ($oIEatt))
$oObj = _IETagNameGetCollection ($oIEatt, "li")
MsgBox ($MB_SYSTEMMODAL,"",$oObj.length)

While 1
        Switch GUIGetMsg()
                Case $GUI_EVENT_CLOSE
                        ExitLoop
        EndSwitch
WEnd

Ends up with a COM error :

"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (3066) : ==> The requested action with this object has failed.:
Return $oIE.Document.parentwindow
Return $oIE.Document ERROR

But if you remove .Document.parentwindow from the Func IEControlGetObjFromHWND () it works fine...

Change History (4)

comment:1 Changed 4 years ago by mLipok

  • Description modified (diff)
  • Owner set to mLipok
  • Status changed from new to assigned

comment:2 Changed 4 years ago by mLipok

  • Component changed from AutoIt to Standard UDFs

comment:3 Changed 4 years ago by mLipok

  • Description modified (diff)

comment:4 Changed 4 years ago by mLipok

  • Description modified (diff)
Note: See TracTickets for help on using tickets.