#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=Sans titre (1).ico #AutoIt3Wrapper_Outfile=..\..\Logiciels\AutomatedClockSync_32-LE.exe #AutoIt3Wrapper_Outfile_x64=..\..\Logiciels\AutomatedClockSync_64.exe #AutoIt3Wrapper_Compile_Both=y #AutoIt3Wrapper_Res_Comment=ACS - Automated Clock Syncer #AutoIt3Wrapper_Res_Description=ACS - Automated Clock Syncer #AutoIt3Wrapper_Res_Fileversion=1.0.0.5 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_ProductName=ACS #AutoIt3Wrapper_Res_ProductVersion=1.0.0.0 #AutoIt3Wrapper_Res_CompanyName=Tyleo Softwares #AutoIt3Wrapper_Res_LegalCopyright=Tyleo Softwares #AutoIt3Wrapper_Res_LegalTradeMarks=Tyleo Softwares #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #RequireAdmin Opt("TrayMenuMode", 3) #include "MetroGUI-UDF\MetroGUI_UDF.au3" #include "Extensions.au3" GetSoftDetails(@AutoItExe,"DEV") ; Integrated : NTP_GetTime() ; Integrated : System_SetTime() #cs Tyleo Software Project Base v1 Created With CNP and DevTools Base Folder All Softwares created with this base are Free and Open Sourced. Join our Guilded Server ! https://www.guilded.gg/i/2DRlM7Mp #ce ResyncTime() Global $TrayMenu_Resync = TrayCreateItem("Resync Now") Global $TrayMenu_Exit = TrayCreateItem("Exit") While 1 $nMSG =GUIGetMsg() Switch $nMSG Case $TrayMenu_Resync ResyncTime() Case $TrayMenu_Exit Exit(0) EndSwitch WEnd Func ResyncTime() RunWait("net start w32time", "", @SW_HIDE) RunWait("w32tm /resync", "", @SW_HIDE) EndFunc