Jump to content
Sign in to follow this  
ofLight

_IECreateEmbedded bleeding through Tabs ??

Recommended Posts

ofLight

The issue I am seeing is content from one tab appearing within another tab. I know my explanation suxx, so I have posted an example of the issue. If you run this script and switch to Tab2 or 3, usually within 30sec you will begin to see content from a different tab appearing on the current tab.

Any help or suggestions on a what ive got wrong here would be greatly appreciated.

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


_BootBars()

Func _BootBars()

    ;$username = '*****'
    ;$password = '*****'

    $path = "http://www.autoitscript.com"
    $iBoot_1 = "www.yahoo.com"
    $iBoot_2 = "www.google.com"
    $iBoot_3 = "www.bing.com"
    $iBoot_4 = ""

    _IEErrorHandlerRegister ()
    $oIE = _IECreateEmbedded ()
    $Sub = GUICreate("BootBars", 740, 620, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 750, 560)

    $BB_Tab = GUICtrlCreateTab(1,1,738,618)
    GUICtrlCreateTabItem('Dell KVM')
        _IENavigate ($oIE, $path)
        ;$oForm = _IEFormGetObjByName ($oIE, 0)
        ;$oText = _IEFormElementGetObjByName ($oForm, "UsernameEdit")
        ;_IEFormElementSetValue ($oText, $username)
        ;$oText = _IEFormElementGetObjByName ($oForm, "PasswordEdit")
        ;_IEFormElementSetValue ($oText, $password)
        ;_IEFormSubmit ($oForm,0)
    GUICtrlCreateTabItem(' BootBar_1 ')
        $oIE_BB1 = _IECreateEmbedded ()
        $GUIActiveX_1 = GUICtrlCreateObj($oIE_BB1, 10, 40, 750, 560)
        _IENavigate ($oIE_BB1, $iBoot_1)
        ;$oForm1 = _IEFormGetObjByName ($oIE_BB1, 0)
        ;$oText1 = _IEFormElementGetObjByName ($oForm1, "name")
        ;_IEFormElementSetValue ($oText1, $username)
        ;$oText1 = _IEFormElementGetObjByName ($oForm1, "password")
        ;_IEFormElementSetValue ($oText1, $password)
        ;_IEFormSubmit ($oForm1,0)
    GUICtrlCreateTabItem(' BootBar_2 ')
        $oIE_BB2 = _IECreateEmbedded ()
        $GUIActiveX_2 = GUICtrlCreateObj($oIE_BB2, 10, 40, 750, 560)
        _IENavigate ($oIE_BB2, $iBoot_2)
        ;$oForm2 = _IEFormGetObjByName ($oIE_BB2, 0)
        ;$oText2 = _IEFormElementGetObjByName ($oForm2, "name")
        ;_IEFormElementSetValue ($oText2, $username)
        ;$oText2 = _IEFormElementGetObjByName ($oForm2, "password")
        ;_IEFormElementSetValue ($oText2, $password)
        ;_IEFormSubmit ($oForm2,0)

    GUICtrlCreateTabItem(' BootBar_3 ')
        $oIE_BB3 = _IECreateEmbedded ()
        $GUIActiveX_3 = GUICtrlCreateObj($oIE_BB3, 10, 40, 750, 560)
        _IENavigate ($oIE_BB3, $iBoot_3)
        ;$oForm3 = _IEFormGetObjByName ($oIE_BB3, 0)
        ;$oText3 = _IEFormElementGetObjByName ($oForm3, "name")
        ;_IEFormElementSetValue ($oText3, $username)
        ;$oText1 = _IEFormElementGetObjByName ($oForm3, "password")
        ;_IEFormElementSetValue ($oText3, $password)
        ;_IEFormSubmit ($oForm3,0)

    GUICtrlCreateTabItem(' BootBar_4 ')
        $oIE_BB4 = _IECreateEmbedded ()
        $GUIActiveX_4 = GUICtrlCreateObj($oIE_BB4, 10, 40, 750, 560)
        _IENavigate ($oIE_BB4, $iBoot_4)
        ;$oForm4 = _IEFormGetObjByName ($oIE_BB4, 0)
        ;$oText4 = _IEFormElementGetObjByName ($oForm4, "name")
        ;_IEFormElementSetValue ($oText4, $username)
        ;$oText4 = _IEFormElementGetObjByName ($oForm4, "password")
        ;_IEFormElementSetValue ($oText4, $password)
        ;_IEFormSubmit ($oForm4,0)

    GUICtrlCreateTabItem('')
    GUISetState()

    While 1
        $msg = GUIGetMsg()
        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
        sleep(10)
    WEnd

    GUIDelete($Sub)

EndFunc

There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Share this post


Link to post
Share on other sites
ofLight

Maybe someone could help me Identify what this issue would be called? I am falling short on my searches for related issues since im not sure exactly what to solve for ;).


There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

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.