Will66 Posted February 18, 2007 Share Posted February 18, 2007 here's a demonstration of the problem. Basically the first IE's display is obscured while the second one loads, hover the mouse over the left one after clicking load 2nd ie button and it re-appears. same if you use one of the other objects like shell: expandcollapse popup#include <GUIConstants.au3> #include <IE.au3> #include <Array.au3> _IEErrorHandlerRegister () $oIE1 = _IECreateEmbedded () $gui=GUICreate("Embedded Web control Test", 680, 580, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $GUIActiveX = GUICtrlCreateObj($oIE1, 10, 40, 300, 470) GUISetState() ;Show GUI _IENavigate ($oIE1, "http://google.com") $button1=GUICtrlCreateButton("load IE2",10,10) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $button1 ie2_load() EndSelect WEnd GUIDelete() Exit Func ie2_load() $oIE2 = _IECreateEmbedded () $GUIActiveX2 = GUICtrlCreateObj($oIE2, 350, 40, 300, 470) _IENavigate ($oIE2, "http://autoitscript.com") EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now