EscapeTheFate Posted May 28, 2009 Posted May 28, 2009 (edited) Iwas wondering if its possible to have 2 overlapping embedded IEs in a gui, yes I know the code is messy. Thanks #include <GuiConstants.au3> #include <IE.au3> GUICreate('test', 700, 500) $ie = _IECreateEmbedded() $ie2 = _IECreateEmbedded() $GUIActiveX = GUICtrlCreateObj($ie, 0, 0, 700, 440) $GUIActive2 = GUICtrlCreateObj($ie2, 200, 250, 700, 440) GUISetState() _IENavigate($ie, 'www.google.ca') _IENavigate($ie2, 'www.google.ca') while 1 wend Edited May 28, 2009 by EscapeTheFate
nobbe Posted May 28, 2009 Posted May 28, 2009 (edited) expandcollapse popup#include <GUIConstants.au3> #include <IE.au3> Global $oIE1 = _IECreateEmbedded() Global $oIE2 = _IECreateEmbedded() #Region ### START Koda GUI section ### Form= $Browser = GUICreate("Browser", 650, 450, 185, 145) $First_Group = GUICtrlCreateGroup("First Surf Page", 8, 10, 633, 210) $GUIActiveX1 = GUICtrlCreateObj($oIE1, 25, 50, 600, 160) $GUIActiveX2 = GUICtrlCreateObj($oIE2, 25, 270, 600, 160) $First_Link_Label = GUICtrlCreateLabel("Link", 16, 26, 24, 17) $First_Link_Input = GUICtrlCreateInput("", 48, 24, 225, 21) $Surf1_Button = GUICtrlCreateButton("Surf", 538, 24, 80, 21, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) $Second_Group = GUICtrlCreateGroup("Second Surf Page", 8, 230, 633, 210) $Second_Link_Label = GUICtrlCreateLabel("Link", 16, 246, 24, 17) $Second_Link_Input = GUICtrlCreateInput("", 48, 244, 225, 21) $Surf2_Button = GUICtrlCreateButton("Surf", 538, 244, 80, 21, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Surf1_Button $GUICtrlReadFirstLink = GUICtrlRead($First_Link_Input) _IENavigate($oIE1, $GUICtrlReadFirstLink) Case $msg = $Surf2_Button $GUICtrlReadSecondLink = GUICtrlRead($Second_Link_Input) _IENavigate($oIE2, $GUICtrlReadSecondLink) EndSelect WEnd GUIDelete() Exit Edited May 28, 2009 by nobbe
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