It is currently May 2nd, 2024, 7:46 am

Use a bar to measure time

Get help with creating, editing & fixing problems with skins
User avatar
Mindflyer
Posts: 5
Joined: September 2nd, 2010, 4:16 am

Use a bar to measure time

Post by Mindflyer »

Hi, I'm making a clock skin on which the seconds are shown like a bar that fills as seconds pass up to 59, the empties and start again, as is on the picture attached.
BrCl.png
What I'm not able to do is that the bar fills, since when the value of seconds is NOT 0 the bar stays filled, and empties only when seconds ARE 0.
I can't get the code to work, so can anyone help me?

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[BarBackground]
Meter=Image
ImageName=SecBG.png
W=200
H=64

[Seconds]
Measure=Time
Format=%S

[SecondsBar]
MeasureName=Seconds
Meter=BAR
MinValue=1
MaxValue=59
W=200
H=24
Y=40
BarColor=29,125,255,255
BarOrientation=HORIZONTAL

[BarForeground]
Meter=Image
ImageName=SecMask.png
Y=40

;TIME MEASURE

[MeasureTime1]
Measure=Time
Format=%H:%M

;TIME

[MeterTime]
MeasureName=MeasureTime1
Meter=STRING
X=100
Y=-4
FontColor=255,255,255,255
FontSize=28
FontFace=Eurostile LT ExtendedTwo
StringAlign=CENTER
StringStyle=Normal
StringEffect=Shadow
FontEffectColor=0,0,0,128
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
Last edited by Mindflyer on May 23rd, 2011, 9:48 am, edited 1 time in total.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: Use a bar to measure time

Post by Seahorse »

Can you pop the code for the bar up?
Last edited by Seahorse on May 23rd, 2011, 9:34 am, edited 1 time in total.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: Use a bar to measure time

Post by Seahorse »

Capture.JPG
Capture2.JPG
I've taken my own clock and shoe-horned some other code in to test - the seconds in the time are there so I could see the bar was in the right place. You should be able to pinch bits of this and use them in you own skin.
[Rainmeter]
Update=1000
Author=Seahorse
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
Blur=1
BlurRegion=2,0,0,210,60,15

[Metadata]
Name=Cobalt
Config=Cobalt | System | Clock | Weather
Description=Digital widget
Instructions=Edit the variables to match your system as per adjacent comments.
Version=1.0

[Variables]

;White
Colour1=255,255,255,255
;Blue Solid
Colour2=0,223,223,255
;Blue 50% Trans
Colour3=0,223,223,175


;===============================================================================================
;Measures/Meters
;===============================================================================================

[Measure12HrTime]
Measure=Time
Format=%#I:%M:%S
;i.e. Hours, Minues & seconds for the main clock

[MeasureSeconds]
Measure=Time
Format=%#S
;something to get the seconds only

[MeasureTimeP1]
Measure=Calc
Formula=MeasureSeconds
MinValue=0
MaxValue=59
;A calc!

[Meter12hrTime]
Meter=String
MeasureName=Measure12HrTime
X=105
Y=5
W=210
H=85
FontSize=25
FontColor=#Colour1#
StringAlign=CENTER
AntiAlias=1
Text=%1

[MeterAMPM]
Meter=String
MeasureName=MeasureAMPM
X=178
Y=13
W=20
H=15
FontSize=9
FontColor=#Colour2#
Text=%1

[MeterSecondsBarBack]
Meter=Image
SolidColor=255,255,255,100
X=10
Y=35r
W=190
H=2

[MeterSecondsBar]
Meter=Bar
MeasureName=MeasureTimeP1
BarOrientation=Horizontal
X=r
Y=r
W=190
H=2
Flip=0
AutoScale=1
BarImage=ColourBar190.jpg
;image file need to match the H & W i.e. in this skin 190 pixels
ColourBar190.jpg
You do not have the required permissions to view the files attached to this post.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt