Hi,
ich verscueh gerade für mein Programm eine Gui zu bauen jedoch habe ich gerade leichte Probleme.
Hier mal eine Auflistung der probleme
$Combol9 = GUICtrlCreateCombo("Tore", 512, 264, 73, 21)
GUICtrlSetData(-1,"1|2|3|4|5|6|7|8|9|0","") ; add other item snd set a new default
Der nutzer hat nun 9 ausgewählt wie kann ich nun herrausbekommen das er die 9 angewählt hat ???
$user = UICtrlSetData(-1,"1|2|3|4|5|6|7|8|9|0","") ; add other item snd set a new default war meine Idee, aber wie kann ich $user dann bekommen ??
Meine Gui Hat 5 Buttons, diese dienen mir als Menü.
Ich möchte nun auf Speiler Drücken und Tore wird vresteckt, Werte die da drin sind bleiben aber bestehen, also nicht löschen
[autoit]#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Form1", 625, 443, 192, 124)
$Button1 = GUICtrlCreateButton("Tore", 0, 0, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Spieler", 72, 0, 75, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Fouls", 144, 0, 75, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Button4", 216, 0, 75, 25, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Button5", 288, 0, 75, 25, $WS_GROUP)
$Combo1 = GUICtrlCreateCombo("Tore", 8, 56, 65, 25)
GUICtrlSetData(-1,"1|2|3|4|5|6|7|8|9|0","") ; add other item snd set a new default
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $Form1 = GUICreate("Spieler", 625, 443, 192, 124)
$Button1 = GUICtrlCreateButton("Tore", 0, 0, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Spieler", 72, 0, 75, 25, $WS_GROUP)
GUICtrlSetOnEvent(-1, "spieler")
$Button3 = GUICtrlCreateButton("Fouls", 144, 0, 75, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Button4", 216, 0, 75, 25, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Button5", 288, 0, 75, 25, $WS_GROUP)
$Combo1 = GUICtrlCreateCombo("Tore", 8, 56, 65, 25)
GUICtrlSetData(-1,"1|2|3|4|5|6|7|8|9|0","") ; add other item snd set a new default
$Form1=False
If $Form1 = False Then
GUISetState(@SW_HIDE)
Else
GUISetState(@SW_SHOW)
EndIf
#EndRegion ### END Koda GUI section ###
Func spieler()
$Form1=True
;GUISetState(@SW_SHOW)
EndFunc
While 1
[/autoit][autoit][/autoit][autoit]$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Ich dachte mir ich erzeuge einfach 1 menü mit show den rest mit hide und dann mache ich die wieder sichtbar... aber ähm das klappt nicht