Hi
ich habe folgened GUI:
Spoiler anzeigen
$Maindialog = GUICreate($titel, 220, 330, -1, -1)
GUISetBkColor(0xffffff)
GUICtrlCreateLabel($titel & " v." & $version, 50, 5, 150, 25, $WS_DISABLED)
$aktion = GUICtrlCreateGroup("Aktion", 50, 30, 105, 170)
$shutdown = GUICtrlCreateRadio("Ausschalten", 65, 55, 85, 20)
GUICtrlSetTip(-1, "Computer Ausschalten")
$ruhezustand = GUICtrlCreateRadio("Ruhezustand", 65, 85, 85, 20)
GUICtrlSetTip(-1, "Computer wird in den Ruhezustand gefahren")
$standby = GUICtrlCreateRadio("Standby", 65, 115, 85, 20)
GUICtrlSetTip(-1, "Computer wird in den Standby-Modus gefahren")
$reboot = GUICtrlCreateRadio("Neu starten", 65, 145, 85, 20)
GUICtrlSetTip(-1, "Computer wird Neu gestartet")
$logoff = GUICtrlCreateRadio("Abmelden", 65, 175, 85, 20)
GUICtrlSetTip(-1, "Benutzer wird abgemeldet")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Aktionszeit", 10, 210, 200, 70)
$uhrzeit_redio = GUICtrlCreateRadio("um: ", 25, 225, 40, 20)
GUICtrlSetTip(-1, "Zeitpunkt, zu dem die gewünschte Aktion ausgeführt werden soll")
$timer_redio = GUICtrlCreateRadio("in: ", 25, 255, 40, 20)
GUICtrlSetTip(-1, "Zeitpunkt, zu dem die gewünschte Aktion ausgeführt werden soll")
$stunden = GUICtrlCreateInput("", 75, 242, 30, 20)
GUICtrlCreateLabel(":", 111, 244, 10, 20)
$minuten = GUICtrlCreateInput("", 120, 242, 30, 20)
GUICtrlCreateLabel(":", 155, 244, 10, 20)
$sekunden = GUICtrlCreateInput("", 165, 242, 30, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$aktion_ausfuehren = GUICtrlCreateButton(" OK ", 95, 290)
GUISetState(@SW_SHOW, $Maindialog)
wie lese ich nun aus auf welchem Wert die Radios stehen?
hab es bis jetzt so gelöst:
Spoiler anzeigen
Case $shutdown
$aktion = "Ausschalten"
Case $ruhezustand
$aktion = "Ruhezustand"
Case $standby
$aktion = "Standby"
Case $reboot
$aktion = "Neu starten"
Case $logoff
$aktion = "Abmelden"
Case $uhrzeit_redio
$modus = "Uhrzeit"
Case $timer_redio
$modus = "Timer"
das ganze gefällt mir aber nich so. Hat wer ne Lösung?
Gruß Michi26206
PS: Frohe Weihnachten