Jump to content



Photo

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


  • Please log in to reply
No replies to this topic

#1 Chefito

Chefito

    Seeker

  • Active Members
  • 23 posts

Posted 24 July 2008 - 09:56 PM

Hello boys.
I have this code with two objects ie.
Plain Text         
#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, "<a href='http://www.autoitscript.com' class='bbc_url' title=''>http://www.autoitscript.com"</a>) $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, "<a href='http://www.autoitscript.com' class='bbc_url' title=''>http://www.autoitscript.com"</a>)             $oie.document.parentwindow.scrollto(100,100)             $oie.document.body.scroll="no"         Case $msg = $GUI_Button_Stop             _IENavigate ($oIE2, "<a href='http://www.autoitscript.com' class='bbc_url' title=''>http://www.autoitscript.com"</a>)     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.








0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users