Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 10:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Combobox Index auslesen

Discussion on Combobox Index auslesen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
elite*gold: 250
Join Date: Mar 2010
Posts: 840
Received Thanks: 184
Combobox Index auslesen

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
FoGzone is offline  
Old 01/15/2013, 17:10   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
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"184162192124)
$Combo1 GUICtrlCreateCombo("Combo1"161614525)
GUICtrlSetData(-1"1|2|3|4|5|6")
$Combo2 GUICtrlCreateCombo("Combo2"165614525)
GUICtrlSetData(-1"7|8|9|10|11|12")
$Button1 GUICtrlCreateButton("Button1"401047525$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:
 
omer36 is offline  
Thanks
1 User
Old 01/15/2013, 17:15   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
KDeluxe is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
combobox-CLR
03/11/2012 - C/C++ - 11 Replies
Me and friend wanna make a project.So we wanna a button read a combobox,which that combo,will have slots like slot1,slot2 etc. slots will be values like slot1 = 12345 slot2 = 123456 and we want a button read the slot and write to memory with value,a slot of combo list. Sorry for fails english D;
Combobox auslesen / senden
01/05/2012 - AutoIt - 8 Replies
Schönen Guten abend com ;) Ich melde mich doch noch mal mit einer frage :( Ich wollte halt ne Combobox auslesen lassen & den ausgelesenen wert senden :) $TabSheet1 = GUICtrlCreateTabItem("Werte") GUICtrlSetState(-1,$GUI_SHOW) GUICtrlCreateCombo("", 124, 56, 53, 25)
ComboBox auslesen & vergleichen?!
10/24/2011 - AutoIt - 8 Replies
Hey E*pvpers. Da ich vor etwas längerer Zeit auch mal paar Sachen mit AutoIt gemacht habe, wollte ich es jetzt auch mal wieder probieren. Geht darum, dass ich League of Legends spiele, und ne simple ComboBox habe, mit allen Champions. Jetzt wähl ich einen aus, drücke nen Button und der soll mir ne Internetseite ausgeben mit einem Guide. Link hab ich alles drin etc. Für den Teil dürfte eig folgender Quelltext relevant sein: $Guidesuche = GUICtrlCreateButton("Guidesuche", 160,...



All times are GMT +1. The time now is 10:30.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.