Hallo,
ich bin neu im thema und weiß noch nciht genau wie alles geht
meine plan ist es einen pausentimer zu erstellen der speichert wann man in die pause geht
indem man in GuicreatCombo etwas auswählt und das was man ausgewählt hat dann in Excel gespeichert wird
mein script siet bis jetzt so aus
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Excel.au3>
local $app ,$xlsdir
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("PausenTimer", 371, 268, 192, 124)
GUISetBkColor(0xFF0000)
$Group1 = GUICtrlCreateGroup("Zeit", 32, 32, 305, 33)
$Label4 = GUICtrlCreateLabel("Es ist:" &@HOUR& ":" &@MIN& ":" &@SEC , 40, 44)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Datum", 32, 88, 305, 33)
$Label5 = GUICtrlCreateLabel("Heute ist der:" &@MDAY&"."&@MON&"."&@YEAR , 40, 100)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label1 = GUICtrlCreateCombo("PausenZeit", 32, 136,305,33)
GUICtrlSetData (-1, "08:00-08:30")
GUICtrlSetData (-1, "08:30-09:00")
GUICtrlSetData (-1, "09:00-09:30")
GUICtrlSetData (-1, "09:30-10:00")
GUICtrlSetData (-1, "10:00-10:30")
GUICtrlSetData (-1, "10:30-11:00")
GUICtrlSetData (-1, "11:00-11:30")
GUICtrlSetData (-1, "11:30-12:00")
GUICtrlSetData (-1, "12:00-12:30")
GUICtrlSetData (-1, "13:30-13:00")
GUICtrlSetData (-1, "13:00-13:30")
GUICtrlSetData (-1, "13:30-14:00")
GUICtrlSetData (-1, "14:00-14:30")
GUICtrlSetData (-1, "14:30-15:00")
GUICtrlSetData (-1, "15:00-15:30")
GUICtrlSetData (-1, "15:30-16:00")
GUICtrlSetData (-1, "16:00-16:30")
GUICtrlSetData (-1, "16:30-17:00")
GUICtrlSetData (-1, "17:00-17:30")
GUICtrlSetData (-1, "17:30-18:00")
GUICtrlSetData (-1, "18:00-18:30")
GUICtrlSetData (-1, "18:30-19:00")
GUICtrlSetData (-1, "19:00-19:30")
GUICtrlSetData (-1, "19:30-20:00")
GUICtrlSetData (-1, "20:00-20:30")
GUICtrlSetData (-1, "20:30-21:00")
GUICtrlSetData (-1, "21:00-21:30")
GUICtrlSetData (-1, "21:30-22:00")
GUICtrlSetData (-1, "22:00-22:30")
GUICtrlSetData (-1, "22:30-23:00")
GUICtrlSetData (-1, "23:00-23:30")
GUICtrlSetData (-1, "23:30-24:00")
GUICtrlSetData (-1, "24:00-24:30")
$Label2 = GUICtrlCreateCombo("Name:", 32, 180, 305, 21)
GUICtrlSetData (-1, "Juergen")
GUICtrlSetData (-1, "Tim")
GUICtrlSetData (-1, "Juergen")
$Start = GUICtrlCreateButton("Start", 32, 232, 105, 25)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Stop = GUICtrlCreateButton("Stop", 232, 232, 105, 25)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Pausentimer = GUICtrlCreateLabel("Pausentimer", 160, 8, 62, 25)
$PAUSE = GUICtrlCreateLabel("30:00", 160, 232, 40, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUISetState ()
[/autoit] [autoit][/autoit] [autoit]While 1
[/autoit] [autoit][/autoit] [autoit]$start=timerinit()
GUICtrlSetData($label4,"Es ist: "&@HOUR &":"&@MIN &":"& @sec)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
$STart=timerinit()
GUICtrlSetData($label5,"Heute ist der:" &@MDAY&"."&@MON&"."&@YEAR)
Switch $nmsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
EndSwitch
WEnd
Die frage ist geht es so wie ich es mir gedacht und wenn ja wie genau ![]()
Mfg Asakuya