Hai Leute Ich wollte heute einen kleine webradio machen aber es gibt ein paa probleme!
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$vSender = IniRead( "Data.txt", "Sender", "", "")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Online Radios", 248, 156, 197, 128)
GUISetFont(9, 400, 0, "Arial")
$Combo1 = GUICtrlCreateCombo("", 8, 8, 233, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL,$CBS_OEMCONVERT,$CBS_SORT))
GUICtrlSetData(-1, $vSender)
$Progress1 = GUICtrlCreateProgress(128, 136, 105, 17)
$Label1 = GUICtrlCreateLabel("Bitte waehlen sie einen Sender aus", 8, 136, 114, 19)
$Button1 = GUICtrlCreateButton("STart", 72, 88, 97, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Combo1
$sBtnLabel = GUICtrlRead($Label1)
Switch $sBtnLabel
Case "Bitte waehlen sie einen Sender aus"
GUICtrlSetData($Progress1, "25")
;~ Sleep(500)
GUICtrlSetData($Label1, "Der Sender wird gesucht!")
Case "Sender gefunden!"
GUICtrlSetData($Progress1, "75")
Case "Der Sender wird gesucht!"
GUICtrlSetData($Progress1, "50")
Sleep(500)
GUICtrlSetData($Label1, "Sender gefunden!")
EndSwitch
Case $Label1
EndSwitch
WEnd
1.wie kann ich machen das wenn der jetzt in der combox technobase und hr3 zur auswahl sind das der wen ich auf technobase drücke technobase sucht und wen ich auf hr3 drücke hr3 sucht?
2.
Case $Combo1
$sBtnLabel = GUICtrlRead($Label1)
Switch $sBtnLabel
Case "Bitte waehlen sie einen Sender aus"
GUICtrlSetData($Progress1, "25")
;~ Sleep(500)
GUICtrlSetData($Label1, "Der Sender wird gesucht!")
Case "Sender gefunden!"
GUICtrlSetData($Progress1, "75")
Case "Der Sender wird gesucht!"
GUICtrlSetData($Progress1, "50")
Sleep(500)
GUICtrlSetData($Label1, "Sender gefunden!")
EndSwitch
dieser teil funktiniert nicht und ich weis nicht wieso