Jump to content
Sign in to follow this  

How to get combobox info?

Recommended Posts



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


Case $Combo1

; <--- how to read the box? <-------- this part in question !




Thanks for your time!


Edited by wictro

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.