Sign in to follow this  
Followers 0
wictro

How to get combobox info?

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



greatness mate!

thanks a bunch!

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