NiM Posted November 8, 2006 Share Posted November 8, 2006 (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 November 8, 2006 by NiM Link to comment Share on other sites More sharing options...
BigDod Posted November 8, 2006 Share Posted November 8, 2006 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 More sharing options...
NiM Posted November 9, 2006 Author Share Posted November 9, 2006 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 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