ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: auto-sync system time with atomic clock at night (AboutTime)

(1/1)

brotherS:
I just fulfilled my own request I came up with an hour earlier ;D

Since I don't reboot my almost perfectly healthy Windows 2000 too often and also don't want to run an app 24/7 just to sync my system time I came up with this script, which uses http://www.arachnoid.com/abouttime/ to do the job at night - AboutTime starts, syncs, and quits after a few seconds.

I love AutoHotkey doing stuff for me while I sleep! :D

As always, feel free to comment and improve it!


--- ---GoSub, AutoExec10

; other scripts in your auto-execute section of AutoHotkey.ini ;
; other scripts in your auto-execute section of AutoHotkey.ini ;
; other scripts in your auto-execute section of AutoHotkey.ini ;

;2006-02-23
;auto-sync system time at night
#Persistent
AutoExec10:
SetTimer, AutoSyncTime, 9000000
;
; 3600000 milliseconds = 1 hour
; 5400000 milliseconds = 1,5 hours
; 7200000 milliseconds = 2 hours
; 7200000 milliseconds = 2 hours
; 9000000 milliseconds = 2,5 hours
;
AutoSyncTime:
SyncTime=%A_Hour%
If SyncTime > 1
  If SyncTime < 8
  Run, C:\Programme\AboutTime\AboutTime.exe, C:\Programme\AboutTime\
return

Navigation

[0] Message Index

Go to full version