Jump to content
Sign in to follow this  

Error in the load of 2 webs in 2 objects ie.

Recommended Posts


Hello boys.

I have this code with two objects ie.

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

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
$oIE2 = _IECreateEmbedded ()

GUICreate("Embedded Web control Test", 640, 580, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 300, 360)
$GUIActiveX2 = GUICtrlCreateObj($oIE2, 315, 40, 300, 360)

$GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("Load web 2", 340, 420, 100, 30)
_IENavigate($oie, "http://www.autoitscript.com")

GUISetState()     ;Show GUI

While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $msg = $GUI_Button_Home
            _IENavigate ($oIE, "http://www.autoitscript.com")

        Case $msg = $GUI_Button_Stop
            _IENavigate ($oIE2, "http://www.autoitscript.com")




When I click the second button to load a page in the 2º object ie, the 1º object ie goes blank, and also the reves.

Is this a bug of AutoIt?

Is there any way to fix it without having to refresh the page?

I have another problem. In this code does not happen, but I have a lot longer than when you put that scroll = "not" object ie, I do not remove them until that I move the mouse pointer over it.

What could be the fault?

Thank you for everything.

Share this post

Link to post
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
Sign in to follow this