Jump to content
Sign in to follow this  
n00bster

ok made my combo box

Recommended Posts

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

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

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

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  

×
×
  • Create New...