Sign in to follow this  
Followers 0
NiM

Help with a combo

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
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!

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  
Followers 0