fraudh8er Posted June 30, 2004 Share Posted June 30, 2004 I am a newbie, but the program is helping me do alot of things that I normally would take me a long time. I do have a quesiton. I have the following combo box and it work great: Dim $agencyST = GUISetControl("combo", "my combo", 150, 250, 50, 30) GUISetControlData($agencyST,"IA|MN|WI|MO|TX", "IA") I can select items from the combo box with the keyboard, by typing the 2 characters, but is there a way to get it to drop down with the mouse. Also I would like to know how to get the input back from the combo and how to use it. DO I just use: While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = 0 ;;; Case $msg = $agencyST if $agencyST = "TX", etc or what, thanks Mr. V ;;; Link to comment Share on other sites More sharing options...
Developers Jos Posted June 30, 2004 Developers Share Posted June 30, 2004 Just make the Height of the combobox bigger... e.g. GUISetControl("combo", "my combo", 150, 250, 50, 80) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
fraudh8er Posted June 30, 2004 Author Share Posted June 30, 2004 Thank you for the quick response, but then how do I get the input back from a checkbox: if I have the variable: $checkbox1 do I just do a if statement for -1 or 0, and run commmand accordingly. thanks again Link to comment Share on other sites More sharing options...
Developers Jos Posted June 30, 2004 Developers Share Posted June 30, 2004 In your script the $agencyST is the handle for the combobox so to get its value just do : $checkbox1 = GuiRead($agencyST) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
fraudh8er Posted July 1, 2004 Author Share Posted July 1, 2004 ok the combo box still doesnt work, this is what I have: $agencyST = GUISetControl("combo", "my combo", 150, 250, 50, 180) GUISetControlData(-1,"IA|MN|WI|MO|TX") thanks 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