It is currently April 28th, 2024, 4:01 pm

Animated Bar Image

Get help with creating, editing & fixing problems with skins
User avatar
Senzai
Posts: 10
Joined: May 17th, 2012, 3:51 am

Animated Bar Image

Post by Senzai »

So I've got an animated bar image that measures cpu usage. I used method 1 described in http://rainmeter.net/cms/Tips-AnimatedGIF, method 2 didn't work for me at all.
The problem I have is that because update is set to =100 to get the animation to play properly, the bar being updated at this speed ends up being extremely jumpy. Is it possible to define different update times for different element within one skin? Or would it be possible to have my skin with update=100 generating the animation and then bring in data from another file with update=1000 that measures the cpu usage?

Here is my code so far:

Code: Select all

[Rainmeter]
Update=100

[MeasureCPUUsed]
Measure=CPU
Processor=0
InvertMeasure=1


[MeterCPUBar]
Meter=Bar
MeasureName=MeasureCPUUsed
BarOrientation=Vertical
BarImage=Frame[ImageNumberCalc].png
DynamicVariables=1

[ImageNumberCalc]
Measure=Calc
Formula=Counter % 68
Any advice would be appreciated :)
User avatar
AlC
Posts: 329
Joined: June 9th, 2011, 6:46 pm

Re: Animated Bar Image

Post by AlC »

Don't understand everything what you wanna do, but ...
Senzai wrote:Is it possible to define different update times for different element within one skin?
I think you mean UpdateDivider. UpdateDivider works on Meters, too.
Rainmeter - You are only limited by your imagination and creativity.
User avatar
Senzai
Posts: 10
Joined: May 17th, 2012, 3:51 am

Re: Animated Bar Image

Post by Senzai »

Hmm, sorry if I didn't explain it weel, here's a link to the files http://dl.dropbox.com/u/29425969/Health%20Frames.rar

I tried using the UpdateDivider on the bar meter but that slows down the animation of the images as well.
Creation is a matter of thought.
User avatar
AlC
Posts: 329
Joined: June 9th, 2011, 6:46 pm

Re: Animated Bar Image

Post by AlC »

Try adding UpdateDivider on the [MeasureCPUUsed].

Code: Select all

[MeasureCPUUsed]
Measure=CPU
Processor=0
InvertMeasure=1
UpdateDivider=5
Rainmeter - You are only limited by your imagination and creativity.
User avatar
Senzai
Posts: 10
Joined: May 17th, 2012, 3:51 am

Re: Animated Bar Image

Post by Senzai »

Ah, that works perfectly.
Thank you so much for your help :)
Creation is a matter of thought.