Landvermesser
Joined: 03 Nov 2004 Posts: 51
|
Posted: Mon Mar 13, 2006 9:41 am Post subject: Tray clock with seconds (or some other info) |
|
|
This short script shows how to add some info to Windows tray clock (here -- seconds, but may be the CPU usage be usefull too)
| Code: | #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 |
_________________ My AHK project: http://landvermesser.tripod.com/ |
|