Jump to content

Help with a combo


NiM
 Share

Recommended Posts

OK, now, what I am trying to do, is have it so when you click one of the things in the comboboxthingiedropdownmenu, it takes you to a website that is pre defined, i know its something so simple i just cant find it..

or is it a completely diffrent function iam looking for?

tis what i have so far

#include <GUIConstants.au3>

GUICreate("My GUI combo"); will create a dialog box that when displayed is centered

GUICtrlCreateCombo ("World of Warcraft Sites", 10,10); create first item
GUICtrlSetData(-1,"              World of Warcraft.com |                 Curse-Gaming.com |              UI.Worldofwar.net |                 Thottbot.com |              wow.Allakhazam.com |                Warcraft Movies.com",); add other item snd set a new default

GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Edited by NiM
Link to comment
Share on other sites

Does this help

#include <GUIConstants.au3>
#include <GuiCombo.au3>
#include <IE.au3>


GUICreate("My GUI combo")

$Combo = GUICtrlCreateCombo("Internet Sites", 10, 10); create first item
GUICtrlSetData(-1, "www.comp-sos.co.uk|www.autoitscript.com|www.google.com|www.hotmail.com|www.yahoo.com|www.hotmail.com")

GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Combo
            $ret = GUICtrlRead($Combo)
            $oIE = _IECreate($ret)
    EndSelect
WEnd


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Does this help

#include <GUIConstants.au3>
#include <GuiCombo.au3>
#include <IE.au3>
GUICreate("My GUI combo")

$Combo = GUICtrlCreateCombo("Internet Sites", 10, 10); create first item
GUICtrlSetData(-1, "www.comp-sos.co.uk|www.autoitscript.com|www.google.com|www.hotmail.com|www.yahoo.com|www.hotmail.com")

GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Combo
            $ret = GUICtrlRead($Combo)
            $oIE = _IECreate($ret)
    EndSelect
WEnd
!! how did you do that?! hows that work? and thanks so much for the help!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...