sandin Posted August 16, 2007 Share Posted August 16, 2007 Hi. I need help. I would like to make a script that will perform a function when u select a diferent option from ComboBox, but I don't know how to, can anyone help me? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
mikehunt114 Posted August 16, 2007 Share Posted August 16, 2007 This should get you started: #include <GUIConstants.au3> Opt("GUIOnEventMode", True) $testGUI = GUICreate("Combo Example") GUISetOnEvent($GUI_EVENT_CLOSE, "Terminate") $combo = GUICtrlCreateCombo("", 10, 10, 150, -1, $CBS_DROPDOWNLIST) GUICtrlSetData($combo, "1|2|3|4|5", "1") GUICtrlSetOnEvent($combo, "ComboFunc") GUISetState() While 1 Sleep(10) WEnd Func ComboFunc() MsgBox(0, "Selection", "You selected: " & GUICtrlRead($combo)) EndFunc Func Terminate() Exit 0 EndFunc IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 16, 2007 Share Posted August 16, 2007 (edited) Hi. I need help.I would like to make a script that will perform a function when u select a diferent option from ComboBox, but I don't know how to, can anyone help me?Show some code to create the demo GUI and a combo box. You'll get lots of help... Edit: Hrumph... mikehunt114 is still stuck on the "Give a man a fish" part... Edited August 16, 2007 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
sandin Posted August 16, 2007 Author Share Posted August 16, 2007 thank you very much, that was exacly what I was looking for. Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
mikehunt114 Posted August 16, 2007 Share Posted August 16, 2007 Just giving him a place to start PSalty, heh. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] 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