Hi also ich wollte fragen ob es möglich ist in das jetzige Script einen Timer aufbauen der wenn man das programm öffnet automatisch ein popup öffnet wo drin steht wie lange es noch bis zu einer bestimmten Uhrzeit ist.
Spoiler anzeigen
#include <GUIConstants.au3>
#include <IE.au3>
Opt("GUIOnEventMode", 1)
$gui = GUICreate('', 250, 200, -1, -1)
GUICtrlSetBkColor(Default, $GUI_BKCOLOR_TRANSPARENT)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
$button = GUICtrlCreateButton("Click on me !!!", 48, 164, 104, 17, 0)
GUICtrlSetOnEvent(-1, "OnClick")
GuiCtrlCreatepic("Hintergrund.JPG", 0 , 0 , 250, 200)
$1 = GUICtrlCreateLabel("", 48, 124, 64, 17)
$2 = GUICtrlCreateLabel("", 48, 144, 64, 17)
GUISetState()
AdlibEnable("_a1", 1000); aktualisiert jede sekunde das Datum und die Uhrzeit
While 1
sleep(1000)
WEnd
Func _a1() ; Datum und uhrzeit aktuell halten
GUICtrlSetData($2, @HOUR & ":" & @MIN & ":" & @SEC)
GUICtrlSetData($1, @MDAY & "." & @MON & "." & @YEAR)
EndFunc ;==>_a1
Func OKButton()
MsgBox(0, "GUI Event", "You have clicked on OK!")
Exit
EndFunc ;==>OKButton
Func CLOSEClicked()
MsgBox(0, "GUI Event", "You have clicked on CLOSE! Program will be shut down ...")
Exit
EndFunc ;==>CLOSEClicked
Func OnClick()
Run("...")
ShellExecute("www.autoit.de")
Exit
EndFunc ;==>OnClick