As more of a visual aid, I thought about adding a Roundline meter for the countdown. But in order to get the code correct, I first attempted a normal Bar meter, but that's not working out either!
sl23 wrote: ↑July 22nd, 2021, 5:40 pm
As more of a visual aid, I thought about adding a Roundline meter for the countdown. But in order to get the code correct, I first attempted a normal Bar meter, but that's not working out either!
jsmorley wrote: ↑July 22nd, 2021, 5:59 pm
Or simply set MinValue and MaxValue on a measure in order to enable Rainmeter to see the value as a percentage.
It works this way... I wasted 2 years of my life converting values to percent
death.crafter wrote: ↑July 22nd, 2021, 5:54 pm
So in measure calc divide the value by total time and multiply by 100.
No, in fact this in this way doesn't work. With such a measure the Bar meter is filled up always. This is caused by the fact that, as even yourself said, the Bar meter needs a percentual value, which, as jsmorley posted, is returned by setting the proper MinValue and MaxValue options on the measure. If you don't set such MinValue and MaxValue options, Rainmeter, as usually, uses the default value for these options. This are 0 for MinValue and 1 for MaxValue. Accordingly on the second measure (which divides the value by total time and multiplies it by 100), the MaxValue is set to 1 (by default), but the values returned by the measure are going from 0 to 100. Excepting the case when the value which has to be shown in the Bar meter is 0, practically on any other cases the value returned by the measure exceds the MaxValue (1) and accordingly the Bar meter is filled up entirely.
As you probably figured out from now, setting the appropriate MinValue and MaxValue is the proper procedure to get the Bar meter working it has. Even if you don't set them, their default values are still used. An eventual solution as you described would be not to multiply the result of division by 100.
balala wrote: ↑July 22nd, 2021, 7:01 pm
No, in fact this in this way doesn't work. With such a measure the Bar meter is filled up always. This is caused by the fact that, as even yourself said, the Bar meter needs a percentual value, which, as jsmorley posted, is returned by setting the proper MinValue and MaxValue options on the measure. If you don't set such MinValue and MaxValue options, Rainmeter, as usually, uses the default value for these options. This are 0 for MinValue and 1 for MaxValue. Accordingly on the second measure (which divides the value by total time and multiplies it by 100), the MaxValue is set to 1 (by default), but the values returned by the measure are going from 0 to 100. Excepting the case when the value which has to be shown in the Bar meter is 0, practically on any other cases the value returned by the measure exceds the MaxValue (1) and accordingly the Bar meter is filled up entirely.
As you probably figured out from now, setting the appropriate MinValue and MaxValue is the proper procedure to get the Bar meter working it has. Even if you don't set them, their default values are still used. An eventual solution as you described would be not to multiply the result of division by 100.
Ohh I see. I use shapes for bar and arc for roundline so never noticed. Thanks for letting me know.
jsmorley wrote: ↑July 22nd, 2021, 5:59 pm
Or simply set MinValue and MaxValue on a measure in order to enable Rainmeter to see the value as a percentage.
Thanks for your replies. So the MaxValue would be total number of seconds in this case?