It is currently April 28th, 2024, 5:23 am

Day Progress Bar Help

Get help with creating, editing & fixing problems with skins
pclman
Posts: 4
Joined: September 27th, 2012, 1:06 am

Day Progress Bar Help

Post by pclman »

I am trying to make a bar that shows the progress through the day, updated every minute. The code I had worked beautifully until 5:00 PM this afternoon. After messing with my time and date settings I noticed it doesn't work (displays bar as full) while the hour is 2, 3, or 7 AM or 5 or 12 PM. The highly specific nature of these problems makes me think I am missing something minor. If anyone could help me out, that would be fantastic.

Code: Select all

[Rainmeter]
Update=1000

[MeasureHour]
Measure=Time
Format=%H
Substitute="01":"60","02":"120","03":"180","04":"240","05":"300","06":"360","07":"420","08":"480","09":"540","10":"600","11":"660","12":"720","13":"780","14":"840","15":"900","16":"960","17":"1020","18":"1080","19":"1140","20":"1200","21":"1260","22":"1320","23":"1380"

[MeasureMinute]
Measure=Time
Format=%M

[Calculate]
Measure=Calc
Formula=[MeasureHour]+[MeasureMinute]
MaxValue=1439
DynamicVariables=1

[MeterProgressBar]
Meter=BAR
MeasureName=Calculate
X=13
Y=21
BarImage=Bar3.png
BarOrientation=Horizontal
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Day Progress Bar Help

Post by smurfier »

Try this:

Code: Select all

[Rainmeter]
Update=1000

[MeasureTime]
Measure=Time
Format=(%#H*60)+%#M

[Calculate]
Measure=Calc
Formula=[MeasureTime]
MaxValue=1440
DynamicVariables=1

[MeterProgressBar]
Meter=BAR
MeasureName=Calculate
X=13
Y=21
BarImage=Bar3.png
BarOrientation=Horizontal
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
pclman
Posts: 4
Joined: September 27th, 2012, 1:06 am

Re: Day Progress Bar Help

Post by pclman »

Thanks, that's perfect
User avatar
Naruto
Posts: 47
Joined: December 8th, 2012, 8:05 pm
Location: Egypt

Re: Day Progress Bar Help

Post by Naruto »

smurfier wrote:Try this:

Code: Select all

[Rainmeter]
Update=1000

[MeasureTime]
Measure=Time
Format=(%#H*60)+%#M

[Calculate]
Measure=Calc
Formula=[MeasureTime]
MaxValue=1440
DynamicVariables=1

[MeterProgressBar]
Meter=BAR
MeasureName=Calculate
X=13
Y=21
BarImage=Bar3.png
BarOrientation=Horizontal
I don't know but this didn't work with me, so what to do ?
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Day Progress Bar Help

Post by moshi »

have a look here to see how a bar meter works: http://docs.rainmeter.net/manual/meters/bar

you probably do not have an image in the skin's folder.
User avatar
Naruto
Posts: 47
Joined: December 8th, 2012, 8:05 pm
Location: Egypt

Re: Day Progress Bar Help

Post by Naruto »

moshi wrote:have a look here to see how a bar meter works: http://docs.rainmeter.net/manual/meters/bar

you probably do not have an image in the skin's folder.
but i delete the line of the picture but still not working so i asked !!!
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Day Progress Bar Help

Post by jsmorley »

Naruto wrote: but i delete the line of the picture but still not working so i asked !!!
Without the image line it will require the W and H settings to set the width and height, or it will be a singularity.
User avatar
Naruto
Posts: 47
Joined: December 8th, 2012, 8:05 pm
Location: Egypt

Re: Day Progress Bar Help

Post by Naruto »

jsmorley wrote:
Without the image line it will require the W and H settings to set the width and height, or it will be a singularity.
oh yah that was right :thumbup: , sorry :oops: