Combobox Index auslesen

01/15/2013 16:48 FoGzone#1
Also mein problem ist folgendes:

Ich habe auf meiner GUI 2 Comboboxen. Beide sind mit 6 Items + dem Anfangsitem (heißt bei mir Select) ausgestattet.

So jetzt möchte ich folgendes haben:

Ist bei Combobox1 der Index1 ausgewählt und bei Combobox2 der Index1 soll etwas ausgeführt werden.
Ist bei Combobox1 der Index1 ausgewählt und bei Combobox2 der Index2 soll wieder was anderes ausgeführt werden.


Wie zur Hölle bekomm ich das hin :confused:
01/15/2013 17:10 omer36#2
den inhalt der comboboxen ganz normal auslesen und abfragen,
PHP Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 184, 162, 192, 124)
$Combo1 = GUICtrlCreateCombo("Combo1", 16, 16, 145, 25)
GUICtrlSetData(-1, "1|2|3|4|5|6")
$Combo2 = GUICtrlCreateCombo("Combo2", 16, 56, 145, 25)
GUICtrlSetData(-1, "7|8|9|10|11|12")
$Button1 = GUICtrlCreateButton("Button1", 40, 104, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
= GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            ExitLoop
        
Case $Button1    
            
If GUICtrlRead($Combo1) == "1" And GUICtrlRead($Combo2) == "7" Then MsgBox("","","check")
            If 
GUICtrlRead($Combo1) == "1" And GUICtrlRead($Combo2) == "12" Then MsgBox("","","check2")
    EndSwitch
WEnd 
PHP Code:
 
01/15/2013 17:15 KDeluxe#3
[Only registered and activated users can see links. Click Here To Register...]