Jump to content

[solved] IE Embedded Readout not working anymore (Possible BUG)


Blueman
 Share

Recommended Posts

Hey Guys,

Hope that you can help me with something, maybe this is a bug in the new version of AUTOIT but first i will check it with you to know for sure.
I have made a simple GUI with a Embedded IE Object, then i would like to read the HTML with _IEBodyReadHTML(), easy right?

When i use the old IE.au3 include from a year back or so, it is working fine!
When i use the new IE.au3 include came with the new installation that is currently available on autoitscript.com it isnt working (i get a result that says; 0).

Let me show you.

 

Working Example

#include <GUIConstantsEx.au3>
#include <IE_EmbeddedVersioning.au3>
#include <IE_PreVersion.au3> ;Older Version




Example()

Func Example()
    ; Create a GUI with various controls.
    Local $hGUI = GUICreate("Example", 1000, 1000)
    Local $idOK = GUICtrlCreateButton("OK", 310, 370, 85, 25)

Global $oIE_1 = _IECreateEmbedded()

; CREATE IE OBJECT(S)
GUICtrlCreateObj($oIE_1, 355, 5, 600, 360)

_IENavigate($oIE_1, "https://www.google.nl", 1)

Local $CheckHTML_T = _IEBodyReadHTML($oIE_1)



    ; Display the GUI.
    GUISetState(@SW_SHOW, $hGUI)


    MsgBox(48,"",$CheckHTML_T)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE, $idOK
                ExitLoop

        EndSwitch
    WEnd

    ; Delete the previous GUI and all controls.
    GUIDelete($hGUI)
EndFunc   ;==>Example

 

Failing Example

#include <GUIConstantsEx.au3>
#include <IE_EmbeddedVersioning.au3>
#include <IE.au3> ;New Version




Example()

Func Example()
    ; Create a GUI with various controls.
    Local $hGUI = GUICreate("Example", 1000, 1000)
    Local $idOK = GUICtrlCreateButton("OK", 310, 370, 85, 25)

Global $oIE_1 = _IECreateEmbedded()

; CREATE IE OBJECT(S)
GUICtrlCreateObj($oIE_1, 355, 5, 600, 360)

_IENavigate($oIE_1, "https://www.google.nl", 1)

Local $CheckHTML_T = _IEBodyReadHTML($oIE_1)



    ; Display the GUI.
    GUISetState(@SW_SHOW, $hGUI)


    MsgBox(48,"",$CheckHTML_T)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE, $idOK
                ExitLoop

        EndSwitch
    WEnd

    ; Delete the previous GUI and all controls.
    GUIDelete($hGUI)
EndFunc   ;==>Example

 

I have attachted all files and i am testing on Windows 10 with the latest SciTe Program (Not compiled). 
When i compile the script it is showing the same result.

Thanks guys!

IE_PreVersion.au3

IE.au3

IE_EmbeddedVersioning.au3

Link to comment
Share on other sites

  • Jos changed the title to [solved] IE Embedded Readout not working anymore (Possible BUG)

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

×
×
  • Create New...