Hi, is there a way to "reset" a measure? As if you refreshed the skin, but without actually refreshing the skin and only for the specified measure.
For example, let's say I have a counter that just does +1 every update cycle. I'd want to "reset" it, so it starts over (starts at 0 again, but still continues counting).
It is currently April 18th, 2024, 1:42 am
"Reset" a measure?
-
- Posts: 127
- Joined: September 27th, 2017, 6:32 pm
- Location: Netherlands
-
- Rainmeter Sage
- Posts: 16143
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: "Reset" a measure?
Yes, there is. Use the following bangs: [!DisableMeasure "MeasureName"][!UpdateMeasure "MeasureName"][!EnableMeasure "MeasureName"]. The trick here is that you have to first disable the measure (you get it to zero in a such case), then have to update it and after this you have to reenable it, to get it counting again. Simply disabling and enabling it doesn't work, because the measure keeps its value.JelleDekkers wrote: ↑April 25th, 2019, 7:22 am Hi, is there a way to "reset" a measure? As if you refreshed the skin, but without actually refreshing the skin and only for the specified measure.
For example, let's say I have a counter that just does +1 every update cycle. I'd want to "reset" it, so it starts over (starts at 0 again, but still continues counting).
-
- Posts: 127
- Joined: September 27th, 2017, 6:32 pm
- Location: Netherlands
Re: "Reset" a measure?
I'm kind of surprised there isn't a bang for this, but I guess this works.
-
- Rainmeter Sage
- Posts: 16143
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: "Reset" a measure?
There is no need of a such bang. As you can see, it can be done with the existing ones.