Jump to content

How to get combobox info?


wictro
 Share

Recommended Posts

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 :D

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 by wictro
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...