#Persistent RegRead, SavedTimeFormat, HKEY_CURRENT_USER, Control Panel\International, sTimeFormat OnExit, SubExit SetTimer, WatchTime, 1000 Return WatchTime: RegWrite, REG_SZ, HKEY_CURRENT_USER, Control Panel\International, sTimeFormat, ' 'H:mm':%A_Sec% ' SendMessage, 0x1A, 0, "intl", TrayClockWClass1, ahk_class Shell_TrayWnd Return SubExit: RegWrite, REG_SZ, HKEY_CURRENT_USER, Control Panel\International, sTimeFormat, %SavedTimeFormat% SendMessage, 0x1A, 0, "intl", TrayClockWClass1, ahk_class Shell_TrayWnd ExitApp
Tray clock with seconds (or some other info)
Started by
Landvermesser
, Mar 13 2006 09:41 AM
2 replies to this topic
This short script shows how to add some info to Windows tray clock (here -- seconds, but may be the CPU usage be usefull too)
#1
-
Posted 13 March 2006 - 09:41 AM
My AHK project: http://landvermesser.tripod.com/
Interesting idea - I'm not sure if there are any drawbacks to writing to the registry every second (does anyone know when windows actually saves the registry to the hard disk? Only when shutting down?).
You could make a fancier solution by making the clock a little wider by changing its text as you showed and then covering it with the Start Button Clock + cpu and memory usage (mod of Laszlo's) I modded. You only need to change the X_Pos to suit your resolution and maybe the height of the clock/bars to fit your windows' theme.
You could make a fancier solution by making the clock a little wider by changing its text as you showed and then covering it with the Start Button Clock + cpu and memory usage (mod of Laszlo's) I modded. You only need to change the X_Pos to suit your resolution and maybe the height of the clock/bars to fit your windows' theme.
#2
-
Posted 13 March 2006 - 12:32 PM
It is correct, I have made precisely it in the project MacClock. Look here: http://landvermesser...m/MacClock.html (it's not a spam!-)
#3
-
Posted 14 March 2006 - 06:42 AM
My AHK project: http://landvermesser.tripod.com/