Hi
Ich bin neu hier im Forum, und habe leider keine grosse Ahnung von AutoIT.
Ich habe unten ein Bild angehängt was ich bis jetzt gebastelt habe, und möchte die Combo Boxen austauschen gegen die Frei einstellbaren zeiten, wie im Bild Zeit einstellung! Das sollte leichter zu Programmieren sein oder?
Leider weiss ich nicht wie ich so eine Box auswerte, das sie um bei einer eingestellten uhrzeit auch was ausführt.
Ich hoffe mir kann einer Weiterhelfen!
Großes Danke im voraus!
MFG
Christian
C
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <Date.au3>
#Region ### START Koda GUI section ### Form=c:\users\m3tzl3r\desktop\zeitplaner.kxf
$Form1_1 = GUICreate("Zeitplaner", 855, 472, 203, 147)
$Checkbox1 = GUICtrlCreateCheckbox("Montag", 16, 72, 65, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Dienstag", 16, 120, 73, 17)
$Checkbox3 = GUICtrlCreateCheckbox("Mittwoch", 16, 168, 73, 17)
$Checkbox4 = GUICtrlCreateCheckbox("Donnerstag", 16, 216, 73, 17)
$Checkbox5 = GUICtrlCreateCheckbox("Freitag", 16, 264, 57, 17)
$Checkbox6 = GUICtrlCreateCheckbox("Samstag", 16, 312, 73, 17)
$Checkbox7 = GUICtrlCreateCheckbox("Sonntag", 16, 360, 65, 17)
$Combo1 = GUICtrlCreateCombo("Bitte Wählen", 192, 72, 145, 25)
GUICtrlSetData($combo1, "5:55|6:00|6:05|6:10|6:15|6:20|6:25|6:30|6:35|6:40|6:45|6:50|6:55|7:00|7:05|7:10|7:15|7:20|7:25|7:30|7:35|7:40|7:45|7:50|7:55|8:00|8:05|8:10|8:15|8:20|8:25|8:30|8:35|8:40|8:45|8:50|8:55|9:00|")
$Combo2 = GUICtrlCreateCombo("Bitte Wählen", 192, 120, 145, 25)
GUICtrlSetData($combo2, "5:55|6:00|6:05|6:10|6:15|6:20|6:25|6:30|6:35|6:40|6:45|6:50|6:55|7:00|7:05|7:10|7:15|7:20|7:25|7:30|7:35|7:40|7:45|7:50|7:55|8:00|8:05|8:10|8:15|8:20|8:25|8:30|8:35|8:40|8:45|8:50|8:55|9:00|")
$Combo3 = GUICtrlCreateCombo("Bitte Wählen", 192, 168, 145, 25)
GUICtrlSetData($combo3, "5:55|6:00|6:05|6:10|6:15|6:20|6:25|6:30|6:35|6:40|6:45|6:50|6:55|7:00|7:05|7:10|7:15|7:20|7:25|7:30|7:35|7:40|7:45|7:50|7:55|8:00|8:05|8:10|8:15|8:20|8:25|8:30|8:35|8:40|8:45|8:50|8:55|9:00|")
$Combo4 = GUICtrlCreateCombo("Bitte Wählen", 192, 216, 145, 25)
GUICtrlSetData($combo4, "Bitte Wählen|6:00|6:05|6:10|6:15|6:20|6:25|6:30|6:35|6:40|6:45|6:50|6:55|7:00|7:05|7:10|7:15|7:20|7:25|7:30|7:35|7:40|7:45|7:50|7:55|8:00|8:05|8:10|8:15|8:20|8:25|8:30|8:35|8:40|8:45|8:50|8:55|9:00|")
$Combo5 = GUICtrlCreateCombo("Bitte Wählen", 192, 264, 145, 25)
GUICtrlSetData($combo5, "5:55|6:00|6:05|6:10|6:15|6:20|6:25|6:30|6:35|6:40|6:45|6:50|6:55|7:00|7:05|7:10|7:15|7:20|7:25|7:30|7:35|7:40|7:45|7:50|7:55|8:00|8:05|8:10|8:15|8:20|8:25|8:30|8:35|8:40|8:45|8:50|8:55|9:00|")
$Combo6 = GUICtrlCreateCombo("Bitte Wählen", 192, 312, 145, 25)
GUICtrlSetData($combo6, "5:55|6:00|6:05|6:10|6:15|6:20|6:25|6:30|6:35|6:40|6:45|6:50|6:55|7:00|7:05|7:10|7:15|7:20|7:25|7:30|7:35|7:40|7:45|7:50|7:55|8:00|8:05|8:10|8:15|8:20|8:25|8:30|8:35|8:40|8:45|8:50|8:55|9:00|")
$Combo7 = GUICtrlCreateCombo("Bitte Wählen", 192, 360, 145, 25)
GUICtrlSetData($combo7, "5:55|6:00|6:05|6:10|6:15|6:20|6:25|6:30|6:35|6:40|6:45|6:50|6:55|7:00|7:05|7:10|7:15|7:20|7:25|7:30|7:35|7:40|7:45|7:50|7:55|8:00|8:05|8:10|8:15|8:20|8:25|8:30|8:35|8:40|8:45|8:50|8:55|9:00|")
$Button1 = GUICtrlCreateButton("Start", 712, 400, 129, 49, $WS_GROUP)
$Combo8 = GUICtrlCreateCombo("Bitte Wählen", 360, 72, 145, 25)
GUICtrlSetData($combo7, "Bitte Wählen|8:05|8:10|6:15|6:15|6:20|6:25|6:30|6:35|6:40|6:45|6:50|6:55|7:00|7:05|7:10|7:15|7:20|7:25|7:30|7:35|7:40|7:45|7:50|7:55|8:00|")
$Combo9 = GUICtrlCreateCombo("Combo9", 360, 120, 145, 25)
$Combo10 = GUICtrlCreateCombo("Combo10", 360, 168, 145, 25)
$Combo11 = GUICtrlCreateCombo("Combo11", 360, 216, 145, 25)
$Combo12 = GUICtrlCreateCombo("Combo12", 360, 264, 145, 25)
$Combo13 = GUICtrlCreateCombo("Combo13", 360, 312, 145, 25)
$Combo14 = GUICtrlCreateCombo("Combo14", 360, 360, 145, 25)
$Combo15 = GUICtrlCreateCombo("Combo15", 528, 72, 145, 25)
$Combo16 = GUICtrlCreateCombo("Combo16", 528, 120, 145, 25)
$Combo17 = GUICtrlCreateCombo("Combo17", 528, 168, 145, 25)
$Combo18 = GUICtrlCreateCombo("Combo18", 528, 216, 145, 25)
$Combo19 = GUICtrlCreateCombo("Combo19", 528, 264, 145, 25)
$Combo20 = GUICtrlCreateCombo("Combo20", 528, 312, 145, 25)
$Combo21 = GUICtrlCreateCombo("Combo21", 528, 360, 145, 25)
$Combo22 = GUICtrlCreateCombo("Combo22", 696, 72, 145, 25)
$Combo23 = GUICtrlCreateCombo("Combo23", 696, 120, 145, 25)
$Combo24 = GUICtrlCreateCombo("Combo24", 696, 168, 145, 25)
$Combo25 = GUICtrlCreateCombo("Combo25", 696, 216, 145, 25)
$Combo26 = GUICtrlCreateCombo("Combo26", 696, 264, 145, 25)
$Combo27 = GUICtrlCreateCombo("Combo27", 696, 312, 145, 25)
$Combo28 = GUICtrlCreateCombo("Combo28", 696, 360, 145, 25)
$Button2 = GUICtrlCreateButton("Abbrechen", 544, 400, 129, 49, $WS_GROUP)
$List1 = GUICtrlCreateList("", 88, 72, 89, 19)
$List2 = GUICtrlCreateList("", 88, 120, 89, 19)
$List3 = GUICtrlCreateList("", 88, 168, 89, 19)
$List4 = GUICtrlCreateList("", 88, 216, 89, 19)
$List5 = GUICtrlCreateList("", 88, 264, 89, 19)
$List6 = GUICtrlCreateList("", 88, 312, 89, 19)
$List7 = GUICtrlCreateList(_NowDate(), 88, 360, 89, 19)
$Label1 = GUICtrlCreateLabel("Zeit 2", 408, 40, 31, 17)
$Label2 = GUICtrlCreateLabel("Zeit 3", 576, 40, 31, 17)
$Label3 = GUICtrlCreateLabel("Zeit 4", 752, 40, 31, 17)
$Label4 = GUICtrlCreateLabel("Zeit 1", 240, 40, 31, 17)
$Label5 = GUICtrlCreateLabel("Datum", 112, 40, 35, 17)
$Label2 = GUICtrlCreateLabel("Uhrzeit", 750, 8, 145, 19)
;Datum
$Label3 = GUICtrlCreateLabel("Datum:", 550, 8, 145, 19)
$Datum = GUICtrlCreateLabel(_NowDate(), 600, 8, 145, 19)
;Uhrzeit
$Label2 = GUICtrlCreateLabel("Uhrzeit:", 700, 8, 145, 19)
$Zeit = GUICtrlCreateLabel(_NowTime(), 750, 8, 145, 19)
GUISetState(@SW_Show)
AdlibRegister("_Update", 100)
Func _Update()
GUICtrlSetData($Zeit, _NowTime())
EndFunc
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Alles anzeigen