It is currently March 28th, 2024, 11:58 am

Skin coding help, please

Get help with creating, editing & fixing problems with skins
toolgod
Posts: 6
Joined: February 20th, 2018, 8:47 pm

Skin coding help, please

Post by toolgod »

Hi I'm new to pretty much all of this, don't need to know any of this to run a shovel lol. But anyway I'm using the code for a digital clock from rainmeter pdf and I tweaked it to my liking for the background I'm working on. Except I cant figure out how to change 1 thing id like it to read: time/AM:PM (undercenter) day of week (undercenter) month day year. I don't want to go out and "find" a skin kind of a wanna learn how to do this sort of thing so if someone could explain what I'm doing wrong that would be appreciated. And id like to add the only things ive learned is what ive taught myself and my teacher don't know jack.

Code: Select all

[Rainmeter]
Update=1000

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

[MeasureChimeHour]
Measure=Time
Format=%M
IfEqualValue=0
IfEqualAction=[Play "#@#Sounds\NobodyFuckswithJesus.mp3"]

[MeasureSeconds]
Measure=Time
Format=%S

[MeasureAMPM]
Measure=Time
Format=%p

[MeasureMonthName]
Measure=Time
Format=%B

[MeasureDayOfMonth]
Measure=Time
Format=%#d

[MeasureYear]
Measure=Time
Format=%Y

[MeasureDayOfWeek]
Measure=Time
Format=%A

[TextStyle]
FontFace=Ogilvie
FontColor=F7163C
SolidColor=0,0,0,1
StringStyle=Bold
StringAlign=Right
AntiAlias=1

[TextStyle]
FontFace=Ogilvie
FontColor=F7163C
SolidColor=0,0,0,1
StringStyle=Bold
StringAlign=Right
AntiAlias=1

[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
X=300
Y=0
FontSize=100

[MeterSeconds]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureSeconds
X=350
Y=22
FontSize=35
FontColor=F7163C

[MeterAMPM]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureAMPM
X=360
Y=60
FontSize=35
FontColor=F7163C

[MeterDayOfWeekMonthDayYear]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDayOfWeek
MeasureName2=MeasureMonthName
MeasureName3=MeasureDayOfMonth
MeasureName4=MeasureYear
X=280
Y=0R
FontSize=20
Text=%1, %2 %3 %4
toolgod
Posts: 6
Joined: February 20th, 2018, 8:47 pm

Re: Skin coding help, please

Post by toolgod »

Also if there is a place someone could direct me to learn how to build a visualizer also appreciated
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Skin coding help, please

Post by CyberTheWorm »

I hope this is what you wanted, if you change this meter to the code I have for you. Just 4 changes

Code: Select all

[MeterDayOfWeekMonthDayYear]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDayOfWeek
MeasureName2=MeasureMonthName
MeasureName3=MeasureDayOfMonth
MeasureName4=MeasureYear
X=180
Y=20R
StringAlign=Center
FontSize=20
Text=%1#CRLF#%2 %3 %4
X=180 put the text in the correct location
Y=20R move the text down more
StringAlign=Center will center the text at the X location
#CRLF# makes a new line
Capture.PNG
Last edited by CyberTheWorm on February 21st, 2018, 12:09 am, edited 1 time in total.
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Skin coding help, please

Post by CyberTheWorm »

toolgod wrote:Also if there is a place someone could direct me to learn how to build a visualizer also appreciated
https://docs.rainmeter.net/manual/plugins/audiolevel/ This helped me doing mine.
toolgod
Posts: 6
Joined: February 20th, 2018, 8:47 pm

Re: Skin coding help, please

Post by toolgod »

Thank you very much. One more question for now. How can I change the font size of just 1 value? i.e. make the Friday larger and others the same. Or any of the values for that matter.
ChicknwithNoName
Posts: 18
Joined: February 17th, 2018, 11:08 pm

Re: Skin coding help, please

Post by ChicknwithNoName »

You have duplicate [TextStyle] settings. Unless, of course, this is a placeholder for your "DayOfWeek" styling. In which case, you'll want to rename it, eg. [TextStyle2] or [DayOfWeekStyle].

You'll want to shift your meters over to the right more. When your time reaches double digits, the first number gets cut off.

As for changing the "Day of the Week" font size, you might be better off just separating it into its own meter.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin coding help, please

Post by jsmorley »

toolgod wrote:Thank you very much. One more question for now. How can I change the font size of just 1 value? i.e. make the Friday larger and others the same. Or any of the values for that matter.
That could be done with

https://docs.rainmeter.net/manual/meters/string/inline/

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeterOne]
Meter=String
FontSize=12
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
InlineSetting=Size | 15
InlinePattern=Two
Text=One Two Three
1.png
ChicknwithNoName
Posts: 18
Joined: February 17th, 2018, 11:08 pm

Re: Skin coding help, please

Post by ChicknwithNoName »

jsmorley wrote:That could be done with

https://docs.rainmeter.net/manual/meters/string/inline/
I was originally going to suggest that, but I thought maybe it might get confusing when implementing it with their code. It took me a while to figure out the InlinePattern expressions.

Code: Select all

[MeterDayOfWeekMonthDayYear]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDayOfWeek
MeasureName2=MeasureMonthName
MeasureName3=MeasureDayOfMonth
MeasureName4=MeasureYear
X=180
Y=20R
StringAlign=Center
FontSize=20
InlineSetting=Size | 30
InlinePattern=(.*)#CRLF#.*
Text=%1#CRLF#%2 %3 %4
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin coding help, please

Post by jsmorley »

ChicknwithNoName wrote:I was originally going to suggest that, but I thought maybe it might get confusing when implementing it with their code. It took me a while to figure out the InlinePattern expressions.

Code: Select all

[MeterDayOfWeekMonthDayYear]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDayOfWeek
MeasureName2=MeasureMonthName
MeasureName3=MeasureDayOfMonth
MeasureName4=MeasureYear
X=180
Y=20R
StringAlign=Center
FontSize=20
InlineSetting=Size | 30
InlinePattern=(.*)#CRLF#.*
Text=%1#CRLF#%2 %3 %4
Well, I don't disagree that trying to jam a ton of disparate stuff into a single meter might not always be the best solution.
toolgod
Posts: 6
Joined: February 20th, 2018, 8:47 pm

Re: Skin coding help, please

Post by toolgod »

ChicknwithNoName wrote:You have duplicate [TextStyle] settings. Unless, of course, this is a placeholder for your "DayOfWeek" styling. In which case, you'll want to rename it, eg. [TextStyle2] or [DayOfWeekStyle].

You'll want to shift your meters over to the right more. When your time reaches double digits, the first number gets cut off.

As for changing the "Day of the Week" font size, you might be better off just separating it into its own meter.
Thank you, I didn't catch that and I did change it to a textstyle2.
Post Reply