wictro Posted January 30, 2008 Share Posted January 30, 2008 (edited) Hello! I started using auto-it a few days ago, and made myself a nice lil bot. Now i'm intressed to make a GUI for the software. My current problem is that i cannot read combo-boxes What should i use here: #include <GUIConstants.au3> ; load GUI $Form2 = GUICreate("Form1", 165, 45, 303, 219) ; create window $Combo1 = GUICtrlCreateCombo("Frontal", 10, 10, 145, 25) ; create combo box GUICtrlSetData(-1,"Behind|Dip","Dip") ; add more options for combo dropdown menu, set "dip" as default GUISetState(@SW_SHOW) ; set window to show While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE ; "x" pressed , close window Exit Case $Combo1 ; <--- how to read the box? <-------- this part in question ! EndSwitch WEnd --------------- Thanks for your time! -wic Edited January 30, 2008 by wictro Link to comment Share on other sites More sharing options...
Zedna Posted January 30, 2008 Share Posted January 30, 2008 (edited) GUICtrlRead() $value = GUICtrlRead($Combo1) Edited January 30, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
wictro Posted January 30, 2008 Author Share Posted January 30, 2008 greatness mate! thanks a bunch! 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