Jump to content
Sign in to follow this  
n00bster

ok made my combo box

Recommended Posts

n00bster

thanks all for the help

Edited by n00bster

Share this post


Link to post
Share on other sites
BrettF

Could have just edited the other topic you had :P

Why not something like this?

#include <GuiConstants.au3>

GUICreate("MyGUI", 309, 73, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Combo_1 = GUICtrlCreateCombo("Now", 10, 30, 180, 21)
GUICtrlSetData (-1, "Lets|Pick|A|Stat")
$Button_2 = GUICtrlCreateButton("Button2", 200, 30, 100, 20)

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_2
            $stat = ""
            $combo = GUICtrlRead($Combo_1)
            MsgBox(0, "", "you selected '" & $combo & "'")
            If $combo = "Now"  Then
                $stat = "Combo was = 'now'" 
            ElseIf $combo = "Lets"  Then
                $stat = "Combo was = 'lets'" 
            ElseIf $combo = "Pick"  Then
                $stat = "Combo was = 'pick'" 
            ElseIf $combo = "A"  Then
                $stat = "Combo was = 'A'" 
            ElseIf $combo = "Stat"  Then
                $stat = "Combo was = 'now'" 
            EndIf
            MsgBox(0, "", $stat)
    EndSelect
WEnd

Share this post


Link to post
Share on other sites
n00bster

k thanks i will play around with it just the other was a lil easier to make and i used an example to make it =/

Share this post


Link to post
Share on other sites
PsychoticPenguin

Straight from the Gevalum rules:

1. Macroing, or using an automated program to progress for you, is prohibited. If you're caught cheating, your punishment will be no less than a ban, and more than likely an IP ban. Mods will perform routine macro checks on the most active players. in the form of an alert or PM. If you receive a macro check by a mod (their PMs will be bold), you are required to respond. Failure to do so will result in an IP ban for cheating.

We are watching you.

Leviathan Mist of Gevalum

Share this post


Link to post
Share on other sites
EscapeTheFate

How about you read the Autoit forum rules Levi? I'm sick of seeing posts like this. This forum is for autoit and autoit only, we come here to learn and have fun with autoit, not to be harrassed by the admins of Gevalum

Share this post


Link to post
Share on other sites
DW1

I do not condone cheating in games... in fact.. I hate cheaters, but not as much as I hate admins/mods from other boards thinking they can moderate these posts.... guess what: YOU HAVE NO AUTHORITY HERE

Share this post


Link to post
Share on other sites
Neoflaros

Chris (EscapeTheFate), you are hereby IP-banned from the game.

Thanks,

Data33

Share this post


Link to post
Share on other sites
SmOke_N

I've had enough of your childish tactics. This is not your personal playground.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

×