Alternative Clock

Share your favorite FastKeys commands
Salama7

Alternative Clock

PostPosted by Salama7 » Sat Feb 15, 2014 3:29 pm

Here is the always on top transparent clock I use in my setup. Very useful. You can change a color, font size and position as you like. Just paste the code below into the Command field.

Code: Select all
Gui, +AlwaysOnTop +ToolWindow -SysMenu -Caption
Gui, Color, cccccc
Gui, Font, cRed s11, verdana ;color and size
Gui, Add, Text, vD y0, %A_YYYY%-%A_MM%-%A_DD% %a_hour%:%a_min%:%a_sec%
Gui, Show, NoActivate x750 y3,uptime  ;position
WinSet, TransColor, cccccc 255,uptime
SetTimer, RefC, 1000
return

RefC:
GuiControl, , D, %A_YYYY%-%A_MM%-%A_DD% %a_hour%:%a_min%:%a_sec%
Gui, Show, NoActivate x750 y3,uptime  ;position
return

Comick

Re: Alternative Clock

PostPosted by Comick » Mon Dec 12, 2016 7:27 am

This is a great clock, love it. Thanks.

Posts: 5
Joined: Wed Dec 07, 2016 2:58 pm

Re: Alternative Clock

PostPosted by ChrisKey » Mon Dec 12, 2016 7:10 pm

Thanks, that's useful :-)

I modified it to get a dark background, a different font and positioned it on the right bottom of the main monitor:

Code: Select all
SysGet, curMon, Monitor
pos_x := curMonRight-200
pos_y := curMonBottom-20

bgd_color=Grey
fgd_color=Lime

Gui, +AlwaysOnTop +ToolWindow -SysMenu -Caption
Gui, Color, %bgd_color% ;Background Color
Gui, Font, c%fgd_color% s11, Courier New ;color, size and font
Gui, Add, Text, vD y0, %A_DD%.%A_MM%.%A_YYYY% %a_hour%:%a_min% :%a_sec%
Gui, Show, NoActivate x%pos_x% y%pos_y%,uptime  ;position

;WinSet, TransColor, %bgd_color% 255,uptime
SetTimer, RefC, 1000
return

RefC:
GuiControl, , D, %A_DD%.%A_MM%.%A_YYYY% %a_hour%:%a_min% :%a_sec%
Gui, Show, NoActivate x%pos_x% y%pos_y%,uptime  ;position
return

Return to User Commands and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest