Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 14:17

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

Advertisement



[AutoIt] Hilfe! GUICtrlRead Combobox = 0 ??

Discussion on [AutoIt] Hilfe! GUICtrlRead Combobox = 0 ?? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
guapopaul's Avatar
 
elite*gold: 1003
Join Date: Dec 2010
Posts: 2,028
Received Thanks: 846
[AutoIt] Hilfe! GUICtrlRead Combobox = 0 ??

Hallo!

Ich habe ein kleines Problem mit meiner Combobox. Immer wenn ich mithilfe der Funktion show() den Wert der Combobox auslesen möchte, ist das Ergebnis eine 0. Hab schon lange gegoogelt aber nichts gefunden was mich weiterbringt. Kann mir bitte eine sagen woran es liegen kann? Thx garantie :P

Unten ist ein Beispiel, wollte keinen Kilometerlangen Code reinkopieren.


gruß Trooper
guapopaul is offline  
Old 02/15/2011, 17:58   #2
 
elite*gold: 0
Join Date: Jan 2011
Posts: 1
Received Thanks: 1
PHP Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"297140193115)
$Combo GUICtrlCreateCombo("Startwert"402420125)
GUICtrlSetData(-1,"100|test|9000")
$Button GUICtrlCreateButton("show"4088203250)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button
            show
()
    EndSwitch
WEnd

Func show
()
    
$ergebnis GUICtrlRead($Combo)
    
msgbox (0"test"$ergebnis)
EndFunc 

$Combo = GUICtrlCreateCombo("Startwert", 40, 24, 201, 25)
$Combo = GUICtrlSetData(-1,"100|test|9000")

$Combo = GUICtrlCreateCombo("Startwert", 40, 24, 201, 25)
GUICtrlSetData(-1,"100|test|9000")
GuestxD is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
hilfe mit ComboBox
09/07/2010 - AutoIt - 1 Replies
hey ich bin relativ neu mit dem AutoIt und Koda und hab gleich ma ne frage^^ wenn ich ne combomach machen will (Koda) möchte ich das per klick mehrere sachen untereinander stehen wie eine tabelle halt aber auf klick steht da halt nur 1 wäre nett wenn man mir sagen kann wie ich neue zeilen hinzufüge^^ thx :D
[Schnelle Hilfe]Guictrlread???
04/08/2010 - AutoIt - 2 Replies
Hallo will mal schnell fragen mach grade nen script für mich in SciTe bzw. AutoIt... also wie macht man das nochmal mit send, guictrlread under input? also ich meins so ist falsch ich weiß... (glaub ich) send(Guictrlread=$input1) was hab ich da falsch gemacht?? hatte das mal im kopf doch dann hab ichs vergessen thx für help.
GUICtrlRead und WinSetState
12/10/2009 - AutoIt - 6 Replies
Hi, ich hätte da mal eine Frage. Und zwar programmier ich grade ein Programm (Script), das ein beliebiges Programm beendet, minimiert oder maximiert. Mein Code: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Include <GuiEdit.au3>
Problem mit GUICtrlRead
11/26/2009 - AutoIt - 8 Replies
Wollte hier n Script machen welches ne eingegebene IP bzw Hostnamen pingen kann und auch nen anderen Rechner durchsuchen kann (das ist erstma zweitrangig). Problem ist das das anpingen beim 1. mal funktioniert und beim 2. mal nur 0 gepingt wird. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=c:\users\hans\desktop\autoit test\lanchecker\w gui\lan checker v01a gui.kxf...
[HILFE] GuiCtrlRead funst nit
09/19/2009 - AutoIt - 10 Replies
Hey, ich habe ein problem #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\admin\desktop\autoexpspender.kxf $Auto = GUICreate("mouwMOUW", 633, 447, 193, 125) GUISetBkColor(0x000080)



All times are GMT +1. The time now is 14:17.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.