Jump to content

Recommended Posts

Posted

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, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 300, 360)
$GUIActiveX2 = GUICtrlCreateObj($oIE2, 315, 40, 300, 360)
GUICtrlSetState($GUIActiveX,$gui_disable)

$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")
$oie.document.body.scroll="no"

GUISetState()     ;Show GUI

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $GUI_Button_Home
            _IENavigate ($oIE, "http://www.autoitscript.com")
            $oie.document.parentwindow.scrollto(100,100)
            $oie.document.body.scroll="no"

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

    EndSelect
WEnd

GUIDelete()

Exit

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.

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
×
×
  • Create New...