Jump to content
Sign in to follow this  

Tabs and Imbeds

Recommended Posts


I am trying to have all my emails loaded into 1 autoit program I am creating. Not sure if this can be done but here is what I have so far.

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

_IEErrorHandlerRegister ()
local $exit

$oIE = _IECreateEmbedded ()
$oIE2 = _IECreateEmbedded ()
$x1 = 900
$x2 = (@DesktopWidth - $x1) / 2
$y1 = 650
$y2 = (@DesktopHeight - $y1) / 2

$file = guictrlcreatemenu("File")
$exit = guictrlcreatemenuitem("Exit", $file)

GUICtrlCreateTab(20, 20, $x1 - 30, $y1- 95)
GUICtrlSetState(-1, $GUI_SHOW)
$GUIActiveX = GUICtrlCreateObj($oIE, 35, 45, $x1 - 60, $y1 - 125)

_IENavigate ($oIE, "www.msn.com")

$GUIActiveX2 = GUICtrlCreateObj($oIE, 35, 45, $x1 - 61, $y1 - 126)

_IENavigate ($oIE2, "www.yahoo.com")


GUISetState()       ;Show GUI

; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
case $msg = $exit



The problem is, MSN loads in the Yahoo tab. And of course I would like it to be yahoo.

I am also receiving a com error of

--> COM Error Encountered in ESB 2.0.au3

----> $IEComErrorScriptline = 301

----> $IEComErrorNumberHex = 80020009

----> $IEComErrorNumber = -2147352567

----> $IEComErrorWinDescription = Unspecified error

----> $IEComErrorDescription =

----> $IEComErrorSource =

----> $IEComErrorHelpFile =

----> $IEComErrorHelpContext = 0

----> $IEComErrorLastDllError = 0

I do not get the error when I do it with 1 tab.

Any ideas?

Mr. C

Share this post

Link to post
Share on other sites

okay after a few hours with it I had figured it out.

needed to change

$GUIActiveX2 = GUICtrlCreateObj($oIE, 35, 45, $x1 - 61, $y1 - 126)

_IENavigate ($oIE2, "www.yahoo.com")


$GUIActiveX2 = GUICtrlCreateObj($oIE2, 35, 45, $x1 - 61, $y1 - 126)

_IENavigate ($oIE2, "www.yahoo.com")

ah every once in a while my deaf eye gives me trouble.

and I am pretty sure I didnt post this in the right place so my apologies :x


Edited by cueclub

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.