Page 1 of 2

Skin coding help, please

Posted: February 20th, 2018, 9:15 pm
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

Re: Skin coding help, please

Posted: February 20th, 2018, 9:16 pm
by toolgod
Also if there is a place someone could direct me to learn how to build a visualizer also appreciated

Re: Skin coding help, please

Posted: February 21st, 2018, 12:05 am
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

Re: Skin coding help, please

Posted: February 21st, 2018, 12:08 am
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.

Re: Skin coding help, please

Posted: February 21st, 2018, 2:41 am
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.

Re: Skin coding help, please

Posted: February 21st, 2018, 3:44 am
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.

Re: Skin coding help, please

Posted: February 21st, 2018, 3:57 am
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

Re: Skin coding help, please

Posted: February 21st, 2018, 4:18 am
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

Re: Skin coding help, please

Posted: February 21st, 2018, 4:24 am
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.

Re: Skin coding help, please

Posted: February 21st, 2018, 7:27 pm
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.