Code
#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\..\Users\e1103468\Desktop\Iconshock-Cms-User-login.ico
#AutoIt3Wrapper_Outfile=tool.exe
#AutoIt3Wrapper_UseUpx=y
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Global Const $GUI_EVENT_CLOSE = -3
$date = @MDAY & "." & @MON & "." & @YEAR & @crlf & @HOUR & ":" & @MIN & ":" & @sec & " Uhr"
Example()
Func Example()
; Create a GUI with various controls.
Local $hGUI = GUICreate("Dont log off",250,50)
Local $idOK = GUICtrlCreateButton("Beenden", 10, 10, 85, 25)
Guictrlcreatelabel($date,130,10,100,25)
; Display the GUI.
GUISetState(@SW_SHOW, $hGUI)
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE, $idOK
ExitLoop
EndSwitch
WEnd
; Delete the previous GUI and all controls.
GUIDelete($hGUI)
EndFunc ;==>Example
Alles anzeigen