Hallo das ist zurzeit mein Code könnte mir bitte jemand sagen wie ich es machen kann das bei laufzeit die zeit kommt wie lange er bereits läuft also es fängt an zu zählen sobald das prog startet
Spoiler anzeigen
HotKeySet ("{ESC}", "_exit")
HotKeySet ("{PAUSE}", "_pause")
#include <GUIConstantsEx.au3>
#Include <Timers.au3>
#Include <GuiStatusBar.au3>
#include <StaticConstants.au3>
#include <DateTimeConstants.au3>
#include <WindowsConstants.au3>
Opt ("TrayMenuMode",1)
Local $nMsg
Local $gui001 = GUICreate ("", 614, 20, 0, 0)
GUISetBkColor (0x000000)
GUISetState (@SW_SHOW, $gui001)
$zeit0001 = TimerInit ()
Local $tTimerID = _Timer_SetTimer($gui001, 1000, "_0001", -1)
GUISetCursor (3, 3)
Send ("{PAUSE}")
Func _pause ()
While True
#cs
normal Programm Befehl aber Befehl gelöscht
#ce
Sleep (1000)
WEnd
EndFunc
Func _0001 ($hWnd, $Msg, $iIDTimer, $dwTime)
GUICtrlCreateLabel ("Uhrzeit:", 4, 4, 40, 13)
GUICtrlSetBkColor (-1, 0x000000)
GUICtrlSetColor (-1, 0xFFFF00)
GUICtrlCreateLabel (@HOUR & ":" & @MIN & ":" & @SEC, 44, 4, 50, 13)
GUICtrlSetBkColor (-1, 0x000000)
GUICtrlSetColor (-1, 0xFFFFFF)
GUICtrlCreateLabel ("Datum:", 104, 4, 40, 13)
GUICtrlSetBkColor (-1, 0x000000)
GUICtrlSetColor (-1, 0xFFFF00)
GUICtrlCreateLabel (@MDAY & "." & @MON & "." & @YEAR, 144, 4, 60, 13)
GUICtrlSetBkColor (-1, 0x000000)
GUICtrlSetColor (-1, 0xFFFFFF)
GUICtrlCreateLabel ("Jahrestag:", 214, 4, 60, 13)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetColor (-1, 0xFFFF00)
GUICtrlCreateLabel (@YDAY, 274, 4, 20, 13)
GUICtrlSetBkColor (-1, 0x000000)
GUICtrlSetColor (-1, 0xFFFFFF)
GUICtrlCreateLabel ("laufzeit:", 304, 4 , 160, 13)
GUICtrlSetBkColor (-1, 0x000000)
GUICtrlSetColor (-1, 0xFFFF00)
GUICtrlCreateLabel ("dd | hh:mm:ss", 464, 4, 150, 13)
GUICtrlSetBkColor (-1, 0x000000)
GUICtrlSetColor (-1, 0xFFFFFF)
EndFunc
Func _exit()
Exit
EndFunc