[help] clock not updating

oh, this sysstats thread!

okay, i've managed to mod the default analog clock with my background, hour and minute hands, et cetera. but for some dang reason, it just ain't updating. i'm using the default minute.vbs and hour.vbs. all i did was replace the images. i'm attaching my ini in case that will help.

man, this should be simple. instead, it's me that's simple!

evan_analogclock_new.zip

Attachment: evan_analogclock_new.zip

#236444

I've had this ahppen due to errors in some .vbs script that may be used. in your case this shouldn't apply.

When you configur the image overlay(s) make sure the 'meter' is set to 'none' (assuming you're using the default clock .vbs script.

A good script to use for the clock is the one from the Italian clock (look on DockEx or Wincustomize).

Further, sometimes, reconfiguring the ScriptMeter class by re-navigating it to where the clock.vbs seems to help.

HTH

Chris.

#238270

On a side note, you should refer to images which are located under sysstatsimagesyourclockname instead of your 'my documents' folder, if you ever want

to share it with us...

Keep on trying/trucking ;)

#238271

thx guys. okay, i think i'm at least getting a grasp on what's happening. chris, even though i feel the default analog clock's ini is good to work with, i took your advice and dl'd the italian clock. so, i click on minute hand|configure and put in my png. it works! hour hand: same thing! i delete the second hand and BAM! it all goes to hell! hour and minute hands disappear (probably just out of range.)

so i decide to reload italian clock and delete the second hand first. as soon as i do that, the time goes all wrong and sticks there.

::lightbulb over head:: damn, it's the overlays (0-0, 0-1, 1-1, 1-2, etc.). that's what's messing me up.

is it a workable solution to read the ini, look at the hour hand section, note the overlay class, and modify the vbs accordingly? or vice versa? does "overlay class (0-0)" really mean something or is it just a pointer? edit: that's what i did and it worked!!!

wow, i can actually feel my brain getting bigger!

thx guys!!

#238366

okay, my last hurdle: wtf is the deal with the rotation angle, x and y? the freakin' hands are just floating willy-nilly. i keep making adjustments but can't figure out how to center them and keep them there. is there a formula for figuring those values based on png sizes? or something? :: pulls out more hair ::

#238398

Open one of the other clocks, select an overlay named second and play with the x,y values, see their immediate effect on the desklet and the jeton will drop. No point in altering the angle b/c thats coming from the meter.

#238450

okay, my last hurdle: wtf is the deal with the rotation angle, x and y? the freakin' hands are just floating willy-nilly. i keep making adjustments but can't figure out how to center them and keep them there. is there a formula for figuring those values based on png sizes? or something? :: pulls out more hair ::
Do yourself a favour and read the documentation (ok, I know you read it already, but read it again :))

It's pretty straightforward in the end. You specify the x,y position of the bitmap, and there's a second set of x,y coords which is point where the bitmap will rotate around. Note the roation point can be placed 'outside' the outline of something like a clock hand (where not all the visible pixels extend to the edge of the bitmap regtangle). Like Herd said, the angle value is just a snapshot of the current meter value - the meter should be constantly changing it.

I feel the most important thing for images (esp. for rotating ones eg clock hands), they should be an odd # of pixels wide so that the rotation point is in the center of the hand/bitmap.

Keep playing with it - it'll come to you like revelation soon!

HTH

Chris.

#238472

i know, thx. it was just driving me crazy. then i looked at the config for the italian clock and found my answer:

i made all the pngs 300x300 px. then i made all the x's and y's 150. everything is now forced to center and rotates accordingly. viola!

so thx everyone for your help, and look for me to post this new wünder-clocken soon!

#238488