It is currently May 21st, 2024, 10:26 am

Hopefully a simple problem.

Get help with creating, editing & fixing problems with skins
Stealth
Posts: 3
Joined: April 11th, 2012, 3:15 am

Hopefully a simple problem.

Post by Stealth »

I have no knowledge of creating skins for Rainmeter but I have edited one to my likings. Question though how can I make the date always be displayed to the right of the month instead of being in a fixed position?

Here is a screen shot: http://i48.tinypic.com/etxjqh.jpg

See the date looks fine there, but say the month was 'May' the '7' would still be in that position while 'May' would be like 20 spaces away to the left.
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Hopefully a simple problem.

Post by Kaelri »

This should be easy to fix. :) You must be using two different meters for the second line: one with the month name ("September"), the other with the date ("7"). However, the Time measure is able to return several different kinds of information at once. For example:

Code: Select all

[MeasureMonthAndDay]
Measure=Time
Format=%B %#d
That will give you both the full month name (%B) and the date (%#d). (The # removes leading zeroes, e.g. "07" --> "7".)

Any meter that uses this measure, in the form MeasureName=MeasureMonthAndDay, will display both parts. :)
Stealth
Posts: 3
Joined: April 11th, 2012, 3:15 am

Re: Hopefully a simple problem.

Post by Stealth »

Thank you!

I replaced:

Code: Select all

[MeterMonth]
Meter=STRING
MeasureName=MeasureMonth
x=20c
y=57
FontColor=255,255,255
StringStyle=BOLD
FontSize=12
StringAlign=LEFT
FontFace=ARIAL
AntiAlias=1
Text="%1"
    
[MeterDate]
Meter=STRING
MeasureName=MeasureDate
x=110c
y=0r
FontColor=255,255,255
StringStyle=BOLD
FontSize=12
StringAlign=LEFT
FontFace=ARIAL
AntiAlias=1
Text="%1"
With:

Code: Select all

[MeterMonthAndDay]
Meter=STRING
MeasureName=MeasureMonthAndDay
x=20c
y=57
FontColor=255,255,255
StringStyle=BOLD
FontSize=12
StringAlign=LEFT
FontFace=ARIAL
AntiAlias=1
Text="%1"
It seems to be working as it should!
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Hopefully a simple problem.

Post by Kaelri »

Awesome. :)

By the way, two small tips. First:

Code: Select all

x=20c
This "c" doesn't do anything. You probably just want X=20. The only time you use a letter here is "r" or "R", which would mean "20 pixels relative to the previous meter." (See here for the difference.)

Second:

Code: Select all

Text="%1"
You don't need this line at all, since this is the default text. %1 just means "the value of the measure named in MeasureName." So you only need to use the Text option to do something like this:

Code: Select all

Text="The date is %1."