Jump to content
Sign in to follow this  

How to create an GUI with two embedded IE objects?

Recommended Posts


Hello -

I'm trying to create a resizable GUI with two or more embedded IE objects using _IECreatedEmbedded(). Currently I'm not able to create more than one emb. IE object and furthermore it seems not to be possible to work with IE shortcuts (e. g. CTRL +/- for reszising or CTRL P for printing dialog). Here's a reproducer:

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

GUICreate("TEST", 800, 600, (@DesktopWidth - 800) / 2, (@DesktopHeight - 600) / 2, $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)

Local $oIE = _IECreateEmbedded()
Local $iGUI1_O0 = GUICtrlCreateObj($oIE, 10, 10, 780, 285)

Local $oIE2 = _IECreateEmbedded()
Local $iGUI1_O1 = GUICtrlCreateObj($oIE2, 10, 305, 780, 285)


_IENavigate($oIE, "http://www.autoitscript.com")
_IEAction($oIE, "stop")
_IENavigate($oIE2, "http://www.autoitscript.com")
_IEAction($oIE2, "stop")

While 1
    Local $iMsg = GUIGetMsg()
        Case $iMsg = $GUI_EVENT_CLOSE




Is there something I did wrong? How can I work around this behaviour?

Edited by supersonic

Share this post

Link to post
Share on other sites

Only problem i can see when i try to run your script is that the first _IENavigate seems to never finish (or maybe i just didn't give it enough time)

if you change your _IENavigate Calls to:

_IENavigate($oIE, "http://www.autoitscript.com", 0)

The script does not wait for the object to finish, and both controls work.

The "problem" with IE shortcuts i can't seem to solve. It works with $oIE, until $oIE2 is created then it works with $oIE2

Share this post

Link to post
Share on other sites


thank you.

Maybe anyone else?


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.