It is currently April 24th, 2024, 11:57 pm

newline in substitute.

Get help with creating, editing & fixing problems with skins
Kakkun
Posts: 3
Joined: February 12th, 2010, 2:02 pm

newline in substitute.

Post by Kakkun »

I was wondering if there is a way to change this code:

Code: Select all

Substitute="January":"JANUARY","February":"FEBRUARY","March":"MARCH","April":"APRIL","May":"SEPTEMBER","June":"JUNE","July":"JULY","August":"AUGUST","September":"SEPTEMBER","October":"OCTOBER","November":"NOVEMBER","December":"DECEMBER"
so that it shows
SEP
TEMBER
instead of
SEPTEMBER
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: newline in substitute.

Post by Alex2539 »

There are potentially two ways of doing this. If you are using the latest Beta version, you can add the #CRLF# variable to the substitutions to create line breaks, so each month would look like this: "September":"SEP#CRLF$TEMBER". You would then need to make sure that the H of your string meters is sufficiently large to accommodate the two lines.

If you are not using the latest Beta version, you will need to duplicate the measure that is reading the month, and then modify the substitutions so that the first measure has the first part of the word (the "SEP") and the second measure has the second part (the "TEMBER"). Then you can either use two string meters to display the measures one on top of the other.
ImageImageImageImage
User avatar
maminscris
Posts: 509
Joined: April 24th, 2009, 3:17 pm
Location: Bucharest, Romania Lat 44,43° Lon 26,1°

Re: newline in substitute.

Post by maminscris »

you substitute may with september
Zero at programing, zero at writing codes, so far 2 at making images
But I'm good at copy/paste, and I not always like this
Image
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: newline in substitute.

Post by poiru »

Alex2539 wrote:"September":"SEP#CRLF$TEMBER".
Just so you don't wonder, Alex meant:

Code: Select all

"September":"SEP#CRLF#TEMBER"
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: newline in substitute.

Post by jsmorley »

See you in [CurrentMonth]#CRLF#See you when the moon is [CurrentMoonState]