cueclub Posted December 19, 2010 Share Posted December 19, 2010 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. expandcollapse popup#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 GUICreate("Emails", $x1, $y1, $x2 ,$y2, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) $file = guictrlcreatemenu("File") $exit = guictrlcreatemenuitem("Exit", $file) GUICtrlCreateTab(20, 20, $x1 - 30, $y1- 95) GUICtrlCreateTabItem("MSN") GUICtrlSetState(-1, $GUI_SHOW) $GUIActiveX = GUICtrlCreateObj($oIE, 35, 45, $x1 - 60, $y1 - 125) _IENavigate ($oIE, "www.msn.com") GUICtrlCreateTabItem("Yahoo") $GUIActiveX2 = GUICtrlCreateObj($oIE, 35, 45, $x1 - 61, $y1 - 126) _IENavigate ($oIE2, "www.yahoo.com") guictrlcreatetabitem("") GUISetState() ;Show GUI ; Waiting for user to close the window While 1 $msg = GUIGetMsg() select case $msg = $exit exit EndSelect WEnd GUIDelete() 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 Link to comment Share on other sites More sharing options...
cueclub Posted December 19, 2010 Author Share Posted December 19, 2010 (edited) 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") to $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 C Edited December 19, 2010 by cueclub 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