Analog clock help

Hello, I was wondering if someone could help me out. I can't seem to get any analog clock to work. I have systats 2.5.4 and I'm trying to use Italian clock.

The hands don't move unless I right click and choose update... then it just stays at that time untill I click update again. It behaves the same in both AveDesk and ObjectDock. I even tried deleting the italian clock stuff and re-installing.

Any suggestions?

I'm running Windows XP SP2 with all updates.

Thanks

#283748

You might have an error/misconfiguration in the script.

Check it by rightclick->configure->meters->clock->configure->console

A window will pop up and it should remain empty - if you get any messages in there, see if you can determine the cause or report back here for more help :)

#283811

Thanks cthoffm, it said,

Type mismatch: 'SysStatsModel.Overlays(...)' at line 3, char 1: (null)

I looked at line 3 in clock.vbs, is that the right file? I don't know what I should be looking for. Here are the contents:

' Called every 'interval' seconds as defined in the 'Configure meters...' dialog

Function ScriptMeter_Update

' Set the rotation of the hands.

SysStatsModel.Overlays(1)(0).Rotation = (SysStatsModel.Meters(0) * 360 / 60) Mod 360

SysStatsModel.Overlays(1)(1).Rotation = (SysStatsModel.Meters(0) * 360 / 3600) Mod 360

SysStatsModel.Overlays(1)(2).Rotation = (SysStatsModel.Meters(0) * 360 / 43200) Mod 360

ScriptMeter_Update = true ' The time *always* updates.

End Function

#284052

Try the attached config and script. Just copy them over your existing ones (make a backup of the old ones if you're nervous :) )

It looks like they needed tweaking perhaps because of the SysStats upgrade to 2.5 (? :slant: ). This clock has been around for quite a while.

ItalianClock.zip

Attachment: ItalianClock.zip

#284112

Hmmm. Now it shows the wrong time & console says,

Unterminated string constant at line 4, char 97: SysStatsModel.Overlays("New Overlay")("Minute).Rotation = (SysStatsModel.Meters(0) / 10) Mod 360

I don't understand... I also tried the clock in this pack,

http://www.dockex.com/index.php?pageId=docklets&dkview=43

With that one, only the second hand goes.

Do any of these clocks work for you?

#284343

Change that line to

SysStatsModel.Overlays("New Overlay")("Minute").Rotation = (SysStatsModel.Meters(0) / 10) Mod 360

There was a " missing

#284345

Hi AndreasV. Great work with AveDesk :)

I tried your suggestion. The clock is now updating but its still the wrong time. Also now the 2nd hand circle piece is gone. Console reads,

Type mismatch: 'SysStatsModel.Overlays(...)' at line 3, char 1: (null)

#284350

Check for further missing "s :-)

Also regarding the wrong time, check the 'Time' meter properties and make sure you set it to your correct timezone.

#284431

Actually, I found another clock... have a nice click. That one seems to work fine so I'll just stick with that one.

Thanks for trying anyway guys.

#284625