AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Add seconds to clock

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
System*Monitor
Guest





PostPosted: Mon May 07, 2007 11:27 pm    Post subject: Add seconds to clock Reply with quote

Is there a way to add seconds to the clock on the lower right of the screen? i just thought of the idea not sure how to do it help please!!!
Back to top
Hmm
Guest





PostPosted: Tue May 08, 2007 9:22 pm    Post subject: Clocks Reply with quote

I use this software: http://www.drive-software.com/atomicalarmclock.html to show the seconds. It isn't free but I know I got the free version some where. (It's no longer available on the site.) The free version doesn't have an alarm or less skins or something but still shows the seconds.
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 5790

PostPosted: Tue May 08, 2007 10:41 pm    Post subject: Re: Add seconds to clock Reply with quote

System*Monitor wrote:
help please!!!


Disclaimer: I am not comfortable with the idea of writing to the registry per second.
But I tested and the following code works properly for me:

Tray clock with seconds by Landvermesser

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


Rolling Eyes
Back to top
View user's profile Send private message
svi



Joined: 09 Oct 2006
Posts: 124
Location: Finland

PostPosted: Tue May 08, 2007 11:39 pm    Post subject: Reply with quote

If you have vertical, thin taskbar, you'll have to shorten the space in
Code:
sTimeFormat, '       'H:mm':%A_Sec%
in order to see seconds!
_________________
Pekka Vartto
Back to top
View user's profile Send private message
System*Monitor
Guest





PostPosted: Wed May 09, 2007 4:27 am    Post subject: Reply with quote

THANKS!!1 Very Happy Smile Surprised Surprised Laughing Laughing Rolling Eyes Rolling Eyes Wink

Do you happen to know how to change it from 24-Hour to 12-Hour with AM and PM

Thank U
Back to top
SYstem *Monitor
Guest





PostPosted: Wed May 09, 2007 5:07 am    Post subject: Reply with quote

never mind figured out
Back to top
System*Monitor
Guest





PostPosted: Wed May 09, 2007 5:09 am    Post subject: Reply with quote

Is there a way to make it smaller like the normal clock without so much space? Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy
Back to top
atnbueno



Joined: 24 Mar 2007
Posts: 26

PostPosted: Wed May 09, 2007 4:55 pm    Post subject: Reply with quote

I removed all the extra spaces and it looks good to me Smile
_________________
Regards,
Antonio
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5790

PostPosted: Wed May 09, 2007 5:35 pm    Post subject: Reply with quote

System*Monitor wrote:
Is there a way to make it smaller like the normal clock without so much space? Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy


You may disable Tray clock and use a Start button clock instead.
That should save you some space. Very Happy

See: http://www.autohotkey.com/forum/viewtopic.php?p=54863#54863

Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group