Jump to content

Combo Box Help


Recommended Posts

Hi everyone. I've just started learning AutoIt and had a question I was hoping someone could help me on. How do you get the information from a combo box?

CODE
GUICtrlCreateLabel ("Location",5,10)

GUICtrlCreateCombo ("North", 100,5,100)

$Location = GUICtrlSetData(-1,"South|East|West","N/A")

...

Switch $Location

Case 1

$Location = "North"

Case 2

$Location = "South"

Case 3

$Location = "Ease"

Case 4

$Location = "West"

EndSwitch

Is this correct? Thanks.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...