It is currently May 3rd, 2024, 3:03 am

New counter function

Report bugs with the Rainmeter application and suggest features.
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

New counter function

Post by Chewtoy »

The current counter is based on how many update-cycles has passed.
I'm suggestion a new counter that reads the update time - but can be delayed.
We can add UpdateDivider=2 in hopes to make it go one step every 2 seconds, but our hopes will be shattered as there will still have been 2 updates (if Update=1000), we've just not told the counter to update on every cycle.

So, as there are time when you want an entire skin to function with Update=1000 but want a slower counter, I suggest a counter that can be delayed and not just refreshed slower.
Sure, you could always increase the reminder (%) value, but that's a roundabout.

Would be nice to have anyway. Hope its not too hard to get in.
I don't think, therefore I'm not.
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: New counter function

Post by JpsCrazy »

Couldn't you have a similar effect with something such as:
[msTimer]
Measure=Calc
Formula=[msTimer]+1
DynamicVariables=1

And instead of the update variable, you could do something such as:
Formula=[msTimer]+0.5 and have the update variable so it only shows whole numbers.
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: New counter function

Post by Chewtoy »

That only works as long as you want to start at 0.
You could of course split it up in two, so one does the counting and then you just add the it to where you want to start.
Also, the Remainder seems to be ignored. So as a real substitute, it does not work in really the same way.

As I have it now, it's like this:
Formula=((10*#CycleRate#) + Counter %((#Bars#*10)*#CycleRate#))/#CycleRate#

CycleRate=3
Bars=4

About does not seem happy about this. Not happy at all. It freezes from time to time for me at least.
I don't think, therefore I'm not.