redd
Joined: 06 Nov 2006 Posts: 39 Location: Sechelt,BC
|
Posted: Mon Jul 13, 2009 1:43 am Post subject: Change color help? |
|
|
I would like white background instead of gray.
Thanks
| Code: | #NoTrayIcon
SetTimer, aa, 60000 ; updates every 1 minute
aa:
IniRead, OutputVar, C:\My Folder\Total Time.csv, Minutes,Total Minutes, 0 ; If no value is found, assume it is 0.
OutputVar++
IniWrite, %OutputVar%, C:\My Folder\Total Time.csv, Minutes,Total Minutes
return
F11::
Gui +LastFound -Caption +ToolWindow
Gui, Color, 0x454545
Gui, Font, s20
Gui, Add, Text, vTime w500 +Center
Gui, Show
SetTimer, UpdateOSD, 0000
Gosub, UpdateOSD
OnMessage(0x201, "WM_LBUTTONDOWN")
IniRead, OutputVar, C:\My Folder\Total Time.csv, Minutes,Total Minutes
UpdateOSD:
GuiControl,, Time, % ("Total Time " d := OutputVar//1440) . " " . ("hh" d > 1 || !d ? "days" : "day")
. " " . (h := (OutputVar-d*1440)//60) . " " . (h > 1 || !h ? "hours" : "hour")
. " " . (m := OutputVar-h*60-d*1440) . " " . (m > 1 || !m ? "mins" : "min")
Return
WM_LBUTTONDOWN() {
PostMessage, 0xA1, 2
} |
|
|