Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can Somebody Make These Into A Gadget Clock?

11 Aug 2009   #21
matt_0978

Windows 7 Ultimate 64Bit
 
 

any chance of adding every single one of these into 1 gadget? i like paulies borders as well as grims.

@pauliewog +rep to u on the OP


My System SpecsSystem Spec
.

11 Aug 2009   #22
Generator

XP Pro SP3 x86/Vista SP2 x64/Win7 x64 Triple-boot
 
 

pauliewog, if the following makes sense, copy it and save it.

Code:
Howto add an extra clock
************************
In this howto I shall add a clock called 'HomePremium2' to the pack.
To begin with rename 'SevenEditionsClock.Gadget' to 'SevenEditionsClock.Gadget.zip'
and extract all the files to a new folder.
 
IMAGE EDITS:
**************************
**************************
Folder: "\Images\"
**************************
**************************
 
Copy all the images relating to one of the existing clocks, 
for example copy all the files that start with 'HomePremium' and rename 
them so they begin with 'HomePremium2', there should be six files in total
for each clock.
Now edit these image files to your liking proceed onto the code edits below.
 
 
CODE EDITS:
**************************
**************************
Open: "\en-US\js\clock.js"
**************************
**************************
 
On the very first line, You will find the array for the clock names simular to:
  var clockThemes = new Array("HomePremium", "Professional", "Ultimate");
 
add [, "HomePremium2"] without the [] to the end before the close-bracket like so:
  var clockThemes = new Array("HomePremium", "Professional", "Ultimate", "HomePremium2");
 
**************************
 
Now open find and search for "switch (curTheme)", you should see something like this below it:
 {
  case "HomePremium":
   clockFont = "Constantia, " + clockFont;
   clockFontColor = "#2F2E2E";
   topPX += -3;
   leftPX += -1;
   maxClockNameWidth = 66;
   clockPartsWidth = 13;
   clockPartsHeight = 129;
   clockPartsTop = -1;
   clockPartsLeft = 57;
   break;
  case "Professional":
   clockFont = "Arial Narrow, " + clockFont;
   clockFontColor = "#666666";
   topPX += 3;
   leftPX += 1;
   maxClockNameWidth = 72;
   clockPartsWidth = 13;
   clockPartsHeight = 129;
   clockPartsTop = 0;
   clockPartsLeft = 58;
   break;
  case "Ultimate":
   clockFont = "Arial Narrow, " + clockFont;
   clockFontColor = "#f6f4e2";
   topPX += 6;
   maxClockNameWidth = 70;
   clockPartsWidth = 13;
   clockPartsHeight = 129;
   clockPartsTop = -1;
   clockPartsLeft = 57;
   break;
 }
 
We need to copy a 'block' now and add it to the bottom below the 'Ultimate' block,
Note each block starts with 'case' and ends with the 'break;' text.
so adding a new block would look like this:
 
  case "HomePremium":
   clockFont = "Constantia, " + clockFont;
   clockFontColor = "#2F2E2E";
   topPX += -3;
   leftPX += -1;
   maxClockNameWidth = 66;
   clockPartsWidth = 13;
   clockPartsHeight = 129;
   clockPartsTop = -1;
   clockPartsLeft = 57;
   break;
  case "Professional":
   clockFont = "Arial Narrow, " + clockFont;
   clockFontColor = "#666666";
   topPX += 3;
   leftPX += 1;
   maxClockNameWidth = 72;
   clockPartsWidth = 13;
   clockPartsHeight = 129;
   clockPartsTop = 0;
   clockPartsLeft = 58;
   break;
  case "Ultimate":
   clockFont = "Arial Narrow, " + clockFont;
   clockFontColor = "#f6f4e2";
   topPX += 6;
   maxClockNameWidth = 70;
   clockPartsWidth = 13;
   clockPartsHeight = 129;
   clockPartsTop = -1;
   clockPartsLeft = 57;
   break;
  case "HomePremium2":
   clockFont = "Constantia, " + clockFont;
   clockFontColor = "#2F2E2E";
   topPX += -3;
   leftPX += -1;
   maxClockNameWidth = 66;
   clockPartsWidth = 13;
   clockPartsHeight = 129;
   clockPartsTop = -1;
   clockPartsLeft = 57;
   break;
 
**************************
**************************
Open: "\en-US\js\settings.js"
**************************
**************************
 
Open find and search for [var imagePath = "images/";] minnus the [], you should see something like this on the line below it:
  var imageArray = new Array("HomePremium_settings.png", "Professional_settings.png", "Ultimate_settings.png");
 
add [, "HomePremium2_settings.png"] without the [] to the end before the close-bracket like so:
  var imageArray = new Array("HomePremium_settings.png", "Professional_settings.png", "Ultimate_settings.png", "HomePremium2_settings.png");
 
**************************
**************************
END OF CODE EDITS
**************************
**************************
 
Now zip up everything inside the new folder you created earlier and 
then rename it replacing '.zip' with '.gadget'
 
Be sure not to include the new folder itself, just everything inside it.
 
Hope this makes sense, Generator.  :p
My System SpecsSystem Spec
11 Aug 2009   #23
pauliewog

Windows 7 Ultimate SP1 64-bit
 
 

Quote   Quote: Originally Posted by matt0978 View Post
any chance of adding every single one of these into 1 gadget? i like paulies borders as well as grims.

@pauliewog +rep to u on the OP
Thanks Matt!

I hope Gen or Grim puts them into one gadget and then maybe we could make a 2.0 version of this gadget!
My System SpecsSystem Spec
.


11 Aug 2009   #24
matt_0978

Windows 7 Ultimate 64Bit
 
 

Quote   Quote: Originally Posted by pauliewog View Post
Thanks Matt!

I hope Gen or Grim puts them into one gadget and then maybe we could make a 2.0 version of this gadget!

no worries mate, am sure one of them will (i know generator's watching this thread as i'm posting ) they seem to do a few things together icons being one of them. too clever for their own good they are

(L) their work!
My System SpecsSystem Spec
11 Aug 2009   #25
TheBull

Windows 7 RTM 64bit, Windows 8 Pro 64bit
 
 

Excellent work guys!!!
My System SpecsSystem Spec
11 Aug 2009   #26
Generator

XP Pro SP3 x86/Vista SP2 x64/Win7 x64 Triple-boot
 
 

Quote   Quote: Originally Posted by matt0978 View Post
no worries mate, am sure one of them will (i know generator's watching this thread as i'm posting ) they seem to do a few things together icons being one of them. too clever for their own good they are

(L) their work!
LOL!!!


Here's the next four:
Name:  Next4.jpg
Views: 14
Size:  91.5 KB
(added to the other ones)

Download:
SevenEditionsClockGadget.zip


My System SpecsSystem Spec
11 Aug 2009   #27
pauliewog

Windows 7 Ultimate SP1 64-bit
 
 

Quote   Quote: Originally Posted by Generator View Post
LOL!!!


Here's the next four:
Attachment 22668
(added to the other ones)

Download:
Attachment 22669
Hey thanks man I managed to do it but the hands didn't work on the new ones and I still couldn't get it into a .Gadget install file! lol
My System SpecsSystem Spec
11 Aug 2009   #28
Generator

XP Pro SP3 x86/Vista SP2 x64/Win7 x64 Triple-boot
 
 

Quote   Quote: Originally Posted by pauliewog View Post
Hey thanks man I managed to do it but the hands didn't work on the new ones and I still couldn't get it into a .Gadget install file! lol
No worries mate.

I'll redo the howto at some point so it's easier to follow, maybe in html or something. It's all a bit clumped together with doing it in Notepad but it was just a quick effort whilst I was adding to it.

EDIT: I've started the coding for the other coloured one's btw.
My System SpecsSystem Spec
11 Aug 2009   #29
Mark

Windows 7 Ultimate Vista Ultimate x64
 
 

For anyone who wants to do there own, here is the glass overlay for the clocks, generator is there a way you can make this image layer itself on top of the clocks so the hands are under it like with this Gadget.

Name:  Clock Glass.png
Views: 228
Size:  28.4 KB

sfClock.Gadget.zip


My System SpecsSystem Spec
11 Aug 2009   #30
pauliewog

Windows 7 Ultimate SP1 64-bit
 
 

Quote   Quote: Originally Posted by Mr GRiM View Post
For anyone who wants to do there own, here is the glass overlay for the clocks, generator is there a way you can make this image layer itself on top of the clocks so the hands are under it like with this Gadget.

Attachment 22671

Attachment 22672
Just go over them again with the glass effect it worked for me!
My System SpecsSystem Spec
Closed Thread

 Can Somebody Make These Into A Gadget Clock?




Thread Tools





Similar help and support threads
Thread Forum
digital clock gadget
does anyone know a digital clock gadget with calender+alarm, i recently had one but i don't remember where i downloaded it from?
Gadgets
The Clock Gadget
I recently had to format my hard drive and reinstall windows. I lost a gadget that I loved. The label on it said "The Clock" But it showed the date, time, day etc. I really liked it. I do happen to have a picture of it. I was showing someone how to do screen capture through windows and used...
Gadgets
htc clock and weather gadget
Hi folks i cannot seem to get the weather to show for my location i have typed loads of different ways but nothing ,does anyone have any ideas, i wolud like it to show weather for ******,Cornwall England United Kingdom HTC Home for Windows
Gadgets
Problems with clock gadget
Hi all, I'm new to the forum and windows 7. I downloaded some of the custom clocks from this website (btw, thanks for the nice clocks) and had no problems installing them. After running one of them I noticed that I was unable to change the face of the clock, so I removed that particular clock...
Gadgets
Clock gadget?
Hey guys, new here, love the forum Just wondering if someone could please tell me what gadget this is? At least I'm guessing that's what it is http://www.sevenforums.com/attachments/customization/70558d1272731425-post-your-windows-7-desktops-4-untitled.jpg Thanks!
Gadgets
Which clock gadget is best for these...?
Hello, I am looking for a clock for my desktop, and would like to get some recommendations from other users. I see that there are several recommended ones, but I was hoping that a kind person could point me in the direction or one or two which fulfill my needs. :) My basic requirements...
Gadgets

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:47.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App