Welcome Guest.   Make a donation to an author on the site November 26, 2014, 10:19:01 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: auto-sync system time with atomic clock at night (AboutTime)  (Read 3160 times)
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« on: February 23, 2006, 08:21:36 AM »

I just fulfilled my own request I came up with an hour earlier Grin

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! cheesy

As always, feel free to comment and improve it!

[copy or print]
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
Logged

Thank you.
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.021s | Server load: 0.03 ]