Jump to content

ok made my combo box


n00bster
 Share

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
Link to comment
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

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...