Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 01, 2015, 07:20:53 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: auto-sync system time with atomic clock at night (AboutTime)  (Read 3316 times)

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,122
    • View Profile
    • Donate to Member
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!

Code: [Select]
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