It is currently September 30th, 2024, 1:20 am

Time Text keeps getting cut off in double digits

General topics related to Rainmeter.
ChaosBlades
Posts: 10
Joined: June 13th, 2012, 8:39 pm

Time Text keeps getting cut off in double digits

Post by ChaosBlades »

Can't figure out why it gets cut off when it goes in to 10:00 - 12:00.

Image
Image

Code: Select all

[Rainmeter]
10-Foot HUD (White) - Created by Stephen R Gibson.
W=1000

[MeasureTime]
Measure=Time
Format=%#I:%M %p

[MeasureDate]
Measure=Time
Format=%d

[MeasureMonth]
Measure=Time
Format=%B
Substitute="January":"JANUARY","February":"FEBRUARY","March":"MARCH","April":"APRIL","May":"MAY","June":"JUNE","July":"JULY","August":"AUGUST","September

":"SEPTEMBER","October":"OCTOBER","November":"NOVEMBER","December":"DECEMBER"

[MeasureDay]
Measure=Time
Format=%A
Substitute="Monday":"MONDAY","Tuesday":"TUESDAY","Wednesday":"WEDNESDAY","Thursday":"THURSDAY","Friday":"FRIDAY","Saturday":"SATURDAY","Sunday":"SUNDAY"

[Variables]
Font=Eurostile LT ExtendedTwo
-------------------------------------METERS--------------------------------------------

[MeterTime]
MeasureName=MeasureTime
Meter=STRING
StringEffect=SHADOW
X=500
Y=0
FontColor=255, 255, 255, 220
FontSize=80
FontFace=Sketch Rockwell
StringAlign=Right
;StringStyle=Bold
AntiAlias=1
;Text="12:00 AM"

[MeterDate]
MeasureName=MeasureDate
Meter=STRING
StringEffect=SHADOW
X=500
Y=98
FontColor=255, 255, 255, 120
FontSize=56
FontFace=Sketch Rockwell
StringAlign=Right
;StringStyle=Bold
AntiAlias=1


[MeterMonth]
MeasureName=MeasureMonth
Meter=STRING
StringEffect=SHADOW
;X=110
X=400
Y=103
FontColor=255, 255, 255, 120
FontSize=34
FontFace=Sketch Rockwell
StringAlign=Right
;StringStyle=Bold
AntiAlias=1

[MeterDay]
MeasureName=MeasureDay
Meter=STRING
StringEffect=SHADOW
;X=113
X=395
;Y=147
Y=143
FontColor=255, 255, 255, 225
FontSize=20
FontFace=Sketch Rockwell
StringAlign=Right
;StringStyle=Bold
AntiAlias=1
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Time Text keeps getting cut off in double digits

Post by Kaelri »

The skin just isn't wide enough. You have X=500 on the string meter, but the text is longer than 500 pixels, so the left edge passes behind X=0 and disappears. Try X=550 or so.
User avatar
Mordasius
Posts: 1178
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Time Text keeps getting cut off in double digits

Post by Mordasius »

The basic problem is that you have StringAlign=Right and X=500 in [MeterTime]. This is telling Rainmeter to Right-Justify the text at a position 500 pixels from the left hand side of the window. As soon as the text gets to be wider than 500 pixels it gets cut-off. So all you need to do is replace X=500 with something like X=600 in [MeterTime] and [MeterDate] and X=400 with X=500 in [MeterMonth], and X=395 with X=495 in [MeterDay].

While you're at it, you should also check that the month substitue string is all on one line:

Code: Select all

Substitute="January":"JANUARY","February":"FEBRUARY","March":"MARCH","April":"APRIL","May":"MAY","June":"JUNE","July":"JULY","August":"AUGUST","September":"SEPTEMBER","October":"OCTOBER","November":"NOVEMBER","December":"DECEMBER"
Oops: beaten to the post by Kaelri :)
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Time Text keeps getting cut off in double digits

Post by UnforgivenRevival »

you also have W=1000 under [Rainmeter], which is not needed and could be causing your problem.
User avatar
Brian
Developer
Posts: 2736
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Time Text keeps getting cut off in double digits

Post by Brian »

W= under the Rainmeter section won't affect anything.

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

Re: Time Text keeps getting cut off in double digits

Post by Seahorse »

Brian wrote:W= under the Rainmeter section won't affect anything.

-Brian
Many Bothans pixels died to bring us this information... O.O
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
Brian
Developer
Posts: 2736
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Time Text keeps getting cut off in double digits

Post by Brian »

Seahorse wrote:Many Bothans pixels died to bring us this information... O.O
Aren’t you a little short for a stormtrooper? :D

-Brian
ChaosBlades
Posts: 10
Joined: June 13th, 2012, 8:39 pm

Re: Time Text keeps getting cut off in double digits

Post by ChaosBlades »

Thanks for the help. That fix worked for the first image but it didn't for the second. I don't see how I am suppose to edit it. I add 100 pixels to the time and then it is just 100 pixels from the edge of the screen when it snaps to edge. Sorry I am a horrible coder. Failed HTML and C+ in school ^_^.

Code: Select all

[Rainmeter]

[MeasureTime]
Measure=Time
Format=%#I:%M %p

[MeasureDate]
Measure=Time
Format=%d

[MeasureMonth]
Measure=Time
Format=%B
Substitute="January":"JANUARY","February":"FEBRUARY","March":"MARCH","April":"APRIL","May":"MAY","June":"JUNE","July":"JULY","August":"AUGUST","September":"SEPTEMBER","October":"OCTOBER","November":"NOVEMBER","December":"DECEMBER"

[MeasureDay]
Measure=Time
Format=%A
Substitute="Monday":"MONDAY","Tuesday":"TUESDAY","Wednesday":"WEDNESDAY","Thursday":"THURSDAY","Friday":"FRIDAY","Saturday":"SATURDAY","Sunday":"SUNDAY"

[Variables]
Font=Eurostile LT ExtendedTwo
-------------------------------------METERS--------------------------------------------

[MeterTime]
MeasureName=MeasureTime
Meter=STRING
StringEffect=SHADOW
X=0
Y=0
FontColor=255, 255, 255, 220
FontSize=80
FontFace=Sketch Rockwell

;StringStyle=Bold
AntiAlias=1
;Text="12:55 AM"

[MeterDate]
MeasureName=MeasureDate
Meter=STRING
StringEffect=SHADOW
X=5
Y=98
FontColor=255, 255, 255, 120
FontSize=56
FontFace=Sketch Rockwell
;StringStyle=Bold
AntiAlias=1


[MeterMonth]
MeasureName=MeasureMonth
Meter=STRING
StringEffect=SHADOW
;X=110
X=110
Y=103
FontColor=255, 255, 255, 120
FontSize=34
FontFace=Sketch Rockwell
;StringStyle=Bold
AntiAlias=1

[MeterDay]
MeasureName=MeasureDay
Meter=STRING
StringEffect=SHADOW
;X=113
X=115
;Y=147
Y=143
FontColor=255, 255, 255, 225
FontSize=20
FontFace=Sketch Rockwell
;StringStyle=Bold
AntiAlias=1
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Time Text keeps getting cut off in double digits

Post by Kaelri »

That can probably be fixed by adding DynamicWindowSize=1 in the [Rainmeter] section. (This allows the skin window to expand if a meter is resized or moved beyond its original size.)
ChaosBlades
Posts: 10
Joined: June 13th, 2012, 8:39 pm

Re: Time Text keeps getting cut off in double digits

Post by ChaosBlades »

Thanks a lot that seemed to of fixed it. I think I have finally fixed all the bug and made all the tweaks I wanted to my Rainmeter skin. :D