It is currently October 21st, 2019, 4:07 am

newline in substitute.

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

newline in substitute.

Kakkun » May 22nd, 2010, 5:55 am

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: 648
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: newline in substitute.

Alex2539 » May 22nd, 2010, 6:10 am

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: 522
Joined: April 24th, 2009, 3:17 pm
Location: Bucharest, Romania Lat 44,43° Lon 26,1°

Re: newline in substitute.

maminscris » May 22nd, 2010, 4:24 pm

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: 2877
Joined: April 17th, 2009, 12:18 pm

Re: newline in substitute.

poiru » May 22nd, 2010, 4:26 pm

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: 19591
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: newline in substitute.

jsmorley » May 22nd, 2010, 6:33 pm

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