Sign in to follow this  
Followers 0
fraudh8er

Combo Box Problems

5 posts in this topic

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

;;;

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

In your script the $agencyST is the handle for the combobox so to get its value just do :

$checkbox1 = GuiRead($agencyST)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

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