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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...