It is currently December 4th, 2022, 12:38 pm

Help with Replacing Text with Greetings

Get help with creating, editing & fixing problems with skins
tegra
Posts: 6
Joined: September 6th, 2022, 6:47 am

Help with Replacing Text with Greetings

Post by tegra »

Hello.
I have no knowledge of coding or anything, so this maybe very easy but I can't seem to figure it out.
I'm using Music Info 2 skin by StarLender. When there is no music is playing, it simply shows some dots ....
I want to replace the dots with greetings like Good morning/Evening etc.
Below is the code for the skin, with some edits I did to make that happen which obviously didn't work.

Code: Select all

[Variables]
Scale=1.5
;Scale can be 1~5
FontName=Product Sans
PrimaryColor=255,255,255,255
SecondaryColor=255,255,255,125
IconVariant = W
;W "for White" and B for black
PlayerPath = ---                    
;<Path to your player/youplayer.exe> (excluding <>)
DefX = 450
DefY = 0
iSize=25
Name=Tegra

[MeasureTime]
Measure=Time
Format=%H
Substitute="00":"Witching Hour","01":"Getting even later","02":"Go to bed","03":"Good Morning","04":"Good Morning","05":"Good Morning","06":"Good Morning","07":"Good Morning","08":"Good Morning","09":"Good Morning","10":"Good Morning","11":"Good Morning","12":"Its Midday","13":"Good afternoon","14":"Good afternoon","15":"Good afternoon","16":"Good afternoon","17":"Good afternoon","18":"Good evening","19":"Good evening","20":"Good evening","21":"Good evening","22":"Good evening","23":"Good evening"

[MeterTime]
MeasureName=MeasureTime
Meter=String
;X=
;Y=
W=1000*#Scale#
FontColor=#PrimaryColor#
FontSize=(15*#Scale#)
FontFace=#FontNme#
StringAlign=CenterCenter
AntiAlias=1

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
Substitute="": "MeasureTime"

[Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="":"#Name#"

[M_TRACK]
Meter=String
MeasureName=Track
X=((#DefX#+50) + ((#iSize#*#Scale#))/2)
Y=([Micon:Y]+(45*#Scale#))
W=1000*#Scale#
StringAlign=CenterCenter
FontColor=#PrimaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(15*#Scale#)
AntiAlias=1
Text=%1
It would be a great help if anyone tell me what I am doing wrong or what I should change. I found all these codes in the skin itself or from these forums.
Thank you.
User avatar
tass_co
Posts: 427
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Help with Replacing Text with Greetings

Post by tass_co »

tegra wrote: September 6th, 2022, 7:00 am Hello.
I have no knowledge of coding or anything, so this maybe very easy but I can't seem to figure it out.
I'm using Music Info 2 skin by StarLender. When there is no music is playing, it simply shows some dots ....
I want to replace the dots with greetings like Good morning/Evening etc.
Below is the code for the skin, with some edits I did to make that happen which obviously didn't work.
Can you try this code?

Code: Select all

[Variables]
Scale=1.5
;Scale can be 1~5
FontName=Product Sans
PrimaryColor=255,255,255,255
SecondaryColor=255,255,255,125
IconVariant = W
;W "for White" and B for black
PlayerPath = ---                    
;<Path to your player/youplayer.exe> (excluding <>)
DefX = 450
DefY = 0
iSize=25
Name=Tegra

[MeasureTime]
Measure=Time
Format=%H
Substitute="00":"Witching Hour","01":"Getting even later","02":"Go to bed","03":"Good Morning","04":"Good Morning","05":"Good Morning","06":"Good Morning","07":"Good Morning","08":"Good Morning","09":"Good Morning","10":"Good Morning","11":"Good Morning","12":"Its Midday","13":"Good afternoon","14":"Good afternoon","15":"Good afternoon","16":"Good afternoon","17":"Good afternoon","18":"Good evening","19":"Good evening","20":"Good evening","21":"Good evening","22":"Good evening","23":"Good evening"

[MeterTime]
MeasureName=MeasureTime
Meter=String
;X=
;Y=
W=1000*#Scale#
FontColor=#PrimaryColor#
FontSize=(15*#Scale#)
FontFace=#FontNme#
StringAlign=CenterCenter
AntiAlias=1
DynamicVariables=1 ;<== ADDED 

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
Substitute="": "[MeasureTime]" ; <== ADDED BRACKET

[Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="":"#Name#"


[M_TRACK]
Meter=String
MeasureName=Track
X=((#DefX#+50) + ((#iSize#*#Scale#))/2)
Y=([Micon:Y]+(45*#Scale#))
W=1000*#Scale#
StringAlign=CenterCenter
FontColor=#PrimaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(15*#Scale#)
AntiAlias=1
Text=%1
DynamicVariables=1 ;<== ADDED 

I don't know where i going from here, but i promise it won't be boring... :great:
tegra
Posts: 6
Joined: September 6th, 2022, 6:47 am

Re: Help with Replacing Text with Greetings

Post by tegra »

Can you try this code?
Thank you so much. It worked! So I believe I was only missing the Dynamic variable part and the brackets, right?
I removed the whole [MeterTime] part and it still works. It just needed the brackets at substitute and the dynamic variable part in [M_Track]
User avatar
tass_co
Posts: 427
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Help with Replacing Text with Greetings

Post by tass_co »

tegra wrote: September 6th, 2022, 7:56 am So I believe I was only missing the Dynamic variable part and the brackets, right?
Sometimes I forget too :D
tegra wrote: September 6th, 2022, 7:56 am I removed the whole [MeterTime] part and it still works. It just needed the brackets at substitute and the dynamic variable part in [M_Track]
It is due to the code below

Code: Select all

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
Substitute="": "[MeasureTime]" ; <== ADDED BRACKET
tegra wrote: September 6th, 2022, 7:56 am Thank you so much. It worked!
Glad to help :thumbup:
I don't know where i going from here, but i promise it won't be boring... :great:
tegra
Posts: 6
Joined: September 6th, 2022, 6:47 am

Re: Help with Replacing Text with Greetings

Post by tegra »

tass_co wrote: September 6th, 2022, 8:10 am
Sometimes I forget too :D



It is due to the code below

Code: Select all

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
Substitute="": "[MeasureTime]" ; <== ADDED BRACKET

Glad to help :thumbup:
Hey sorry to bother you again. But the skin isn't updating properly. Since it was on %H, I couldn't tell that right then, So I replaced the %H with %S and found that it only updates when I refresh the skin. I tried a few different things and compared with other clock skins, but found out that when I turn of the substitute code, it works like a normal clock and updates every second. As soon as I turn on the substitute part, it stops updating.

Currently the code is like this:

Code: Select all

[MeasureTime]
Measure=Time
Format=%S
;Substitute="00":"It's Midnight","01":"Getting late","02":"Getting even later","03":"Go to bed","04":"What are you doing with your life?","05":"Good Morning","06":"Good Morning","07":"Good Morning","08":"Good Morning","09":"Good Morning","10":"Good Morning","11":"Good Morning","12":"It's Midday","13":"Good afternoon","14":"Good afternoon","15":"Good afternoon","16":"Good afternoon","17":"Good afternoon","18":"Good evening","19":"Good evening","20":"Good evening","21":"Good evening","22":"Good evening","23":"Good evening"

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
;Substitute="": "[MeasureTime]"

[Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="":"#Name#"

[M_TRACK]
Meter=String
;MeasureName=Track
MeasureName=MeasureTime
X=((#DefX#+50) + ((#iSize#*#Scale#))/2)
Y=([Micon:Y]+(45*#Scale#))
W=1000*#Scale#
StringAlign=CenterCenter
FontColor=#PrimaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(15*#Scale#)
AntiAlias=1
Text=%1
What can I do now?
User avatar
tass_co
Posts: 427
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Help with Replacing Text with Greetings

Post by tass_co »

tegra wrote: September 6th, 2022, 10:41 am Hey sorry to bother you again. But the skin isn't updating properly. Since it was on %H, I couldn't tell that right then, So I replaced the %H with %S and found that it only updates when I refresh the skin. I tried a few different things and compared with other clock skins, but found out that when I turn of the substitute code, it works like a normal clock and updates every second. As soon as I turn on the substitute part, it stops updating.

I cant see DynamicVariables in your code?!?

Code: Select all


[MeasureTime]
Measure=Time
Format=%S
;Substitute="00":"It's Midnight","01":"Getting late","02":"Getting even later","03":"Go to bed","04":"What are you doing with your life?","05":"Good Morning","06":"Good Morning","07":"Good Morning","08":"Good Morning","09":"Good Morning","10":"Good Morning","11":"Good Morning","12":"It's Midday","13":"Good afternoon","14":"Good afternoon","15":"Good afternoon","16":"Good afternoon","17":"Good afternoon","18":"Good evening","19":"Good evening","20":"Good evening","21":"Good evening","22":"Good evening","23":"Good evening"
DynamicVariables=1

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
;Substitute="": "[MeasureTime]"
DynamicVariables=1

[Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="":"#Name#"
DynamicVariables=1

[M_TRACK]
Meter=String
;MeasureName=Track
MeasureName=MeasureTime
X=((#DefX#+50) + ((#iSize#*#Scale#))/2)
Y=([Micon:Y]+(45*#Scale#))
W=1000*#Scale#
StringAlign=CenterCenter
FontColor=#PrimaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(15*#Scale#)
AntiAlias=1
Text=%1
DynamicVariables=1

ps:This should not be the full code. We can help better if you share the complete skin you use :thumbup:
I don't know where i going from here, but i promise it won't be boring... :great:
tegra
Posts: 6
Joined: September 6th, 2022, 6:47 am

Re: Help with Replacing Text with Greetings

Post by tegra »

tass_co wrote: September 6th, 2022, 10:45 am I cant see DynamicVariables in your code?!?

Code: Select all


[MeasureTime]
Measure=Time
Format=%S
;Substitute="00":"It's Midnight","01":"Getting late","02":"Getting even later","03":"Go to bed","04":"What are you doing with your life?","05":"Good Morning","06":"Good Morning","07":"Good Morning","08":"Good Morning","09":"Good Morning","10":"Good Morning","11":"Good Morning","12":"It's Midday","13":"Good afternoon","14":"Good afternoon","15":"Good afternoon","16":"Good afternoon","17":"Good afternoon","18":"Good evening","19":"Good evening","20":"Good evening","21":"Good evening","22":"Good evening","23":"Good evening"
DynamicVariables=1

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
;Substitute="": "[MeasureTime]"
DynamicVariables=1

[Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="":"#Name#"
DynamicVariables=1

[M_TRACK]
Meter=String
;MeasureName=Track
MeasureName=MeasureTime
X=((#DefX#+50) + ((#iSize#*#Scale#))/2)
Y=([Micon:Y]+(45*#Scale#))
W=1000*#Scale#
StringAlign=CenterCenter
FontColor=#PrimaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(15*#Scale#)
AntiAlias=1
Text=%1
DynamicVariables=1

ps:This should not be the full code. We can help better if you share the complete skin you use :thumbup:
Sorry. here's the full code.
Some of them are turned off with ; as you can see. I was just tinkering it myself.

Code: Select all

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

[Metadata]
Name=Music Info 2.0
Author=StarLender
Information=Ctrl + C (MusicInfo 1.0) then Ctrl + V then change font and add one icon... :P done !
Version=1.0.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
Scale=1.5
;Scale can be 1~5
FontName=Product Sans
PrimaryColor=255,255,255,255
SecondaryColor=255,255,255,125
IconVariant = W
;W "for White" and B for black
PlayerPath = ---                    
;<Path to your player/youplayer.exe> (excluding <>)
DefX = 450
DefY = 0
iSize=25
Name=Tegra

[MeasureTime]
Measure=Time
Format=%S
;Substitute="00":"It's Midnight","01":"Getting late","02":"Getting even later","03":"Go to bed","04":"What are you doing with your life?","05":"Good Morning","06":"Good Morning","07":"Good Morning","08":"Good Morning","09":"Good Morning","10":"Good Morning","11":"Good Morning","12":"It's Midday","13":"Good afternoon","14":"Good afternoon","15":"Good afternoon","16":"Good afternoon","17":"Good afternoon","18":"Good evening","19":"Good evening","20":"Good evening","21":"Good evening","22":"Good evening","23":"Good evening"

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
;Substitute="": "[MeasureTime]"


[Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="":"#Name#"

[Micon]
Meter=Image
X=(#DefX#+50)
Y=(#DefY#+30)
W=(#iSize#*#Scale#)
H=(#iSize#*#Scale#)
ImageName=#@#icons\MusicNote#IconVariant#.png
;LeftMouseUpAction=!Execute ["#PlayerPath#"]

[M_TRACK]
Meter=String
;MeasureName=Track
MeasureName=MeasureTime
X=((#DefX#+50) + ((#iSize#*#Scale#))/2)
Y=([Micon:Y]+(45*#Scale#))
W=1000*#Scale#
StringAlign=CenterCenter
FontColor=#PrimaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(15*#Scale#)
AntiAlias=1
Text=%1

[M_ARTIST]
Meter=String
MeasureName=Artist
X=((#DefX#+50) + ((#iSize#*#Scale#)/2))
Y=([M_TRACK:Y]+(20*#Scale#))
W=300*#Scale#
StringAlign=CenterCenter
FontColor=#SecondaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(10*#Scale#)
AntiAlias=1
Text=%1
User avatar
tass_co
Posts: 427
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Help with Replacing Text with Greetings

Post by tass_co »

tegra wrote: September 6th, 2022, 1:03 pm Sorry. here's the full code.
Some of them are turned off with ; as you can see. I was just tinkering it myself.
First of all, my English is not good, sorry if I misunderstood.

I hope I understood correctly
For some reason I don't understand the WebNowPlaying plugin is not working for me.
Because of this, I am not sure about the WebNowPlaying part of the code.

I think you replaced %H with %S to see the result immediately.
The code below; If the title data is empty, it will show the statuses of the day according to the status of the clock.

GIF 6.09.2022 18-35-25.gif

Code: Select all

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

[Metadata]
Name=Music Info 2.0
Author=StarLender
Information=Ctrl + C (MusicInfo 1.0) then Ctrl + V then change font and add one icon... :P done !
Version=1.0.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
Scale=1.5
;Scale can be 1~5
FontName=Product Sans
PrimaryColor=255,255,255,255
SecondaryColor=255,255,255,125
IconVariant = W
;W "for White" and B for black
PlayerPath = ---                    
;<Path to your player/youplayer.exe> (excluding <>)
DefX = 450
DefY = 0
iSize=25
Name=Tegra
varTrack=Hello!

[MeasureStatus]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Status

[MeasureTime]
Measure=Time
Format=%S
RegExpSubstitute=1
Substitute="^([0-9])$":"\1"
IfCondition=((MeasureTime>=0)&&(MeasureTime<1))
IfTrueAction=[!SetVariable varTrack "It's Midnight"]
IfCondition2=((MeasureTime>=1)&&(MeasureTime<2))
IfTrueAction2=[!SetVariable varTrack "Getting late"]
IfCondition3=((MeasureTime>=2)&&(MeasureTime<3))
IfTrueAction3=[!SetVariable varTrack "Getting even later"]
IfCondition4=((MeasureTime>=3)&&(MeasureTime<4))
IfTrueAction4=[!SetVariable varTrack "Go to bed"]
IfCondition5=((MeasureTime>=4)&&(MeasureTime<5))
IfTrueAction5=[!SetVariable varTrack "What are you doing with your life?"]
IfCondition6=((MeasureTime>=5)&&(MeasureTime<6))
IfTrueAction6=[!SetVariable varTrack "Good Morning"]
IfCondition7=((MeasureTime>=6)&&(MeasureTime<7))
IfTrueAction7=[!SetVariable varTrack "Good Morning"]
IfCondition8=((MeasureTime>=7)&&(MeasureTime<8))
IfTrueAction8=[!SetVariable varTrack "Good Morning"]
IfCondition9=((MeasureTime>=8)&&(MeasureTime<9))
IfTrueAction9=[!SetVariable varTrack "Good Morning"]
IfCondition10=((MeasureTime>=9)&&(MeasureTime<10))
IfTrueAction10=[!SetVariable varTrack "Good Morning"]
IfCondition11=((MeasureTime>=10)&&(MeasureTime<11))
IfTrueAction11=[!SetVariable varTrack "Good Morning"]
IfCondition12=((MeasureTime>=11)&&(MeasureTime<12))
IfTrueAction12=[!SetVariable varTrack "Good Morning"]
IfCondition13=((MeasureTime>=12)&&(MeasureTime<13))
IfTrueAction13=[!SetVariable varTrack "It's Midday"]
IfCondition14=((MeasureTime>=13)&&(MeasureTime<14))
IfTrueAction14=[!SetVariable varTrack "Good afternoon"]
IfCondition15=((MeasureTime>=14)&&(MeasureTime<15))
IfTrueAction15=[!SetVariable varTrack "Good afternoon"]
IfCondition16=((MeasureTime>=15)&&(MeasureTime<16))
IfTrueAction16=[[!SetVariable varTrack "Good afternoon"]
IfCondition17=((MeasureTime>=16)&&(MeasureTime<17))
IfTrueAction17=[!SetVariable varTrack "Good afternoon"]
IfCondition18=((MeasureTime>=17)&&(MeasureTime<18))
IfTrueAction18=[!SetVariable varTrack "Good afternoon"]
IfCondition19=((MeasureTime>=18)&&(MeasureTime<19))
IfTrueAction19=[!SetVariable varTrack "Good evening"]
IfCondition20=((MeasureTime>=19)&&(MeasureTime<20))
IfTrueAction20=[!SetVariable varTrack "Good evening"]
IfCondition21=((MeasureTime>=20)&&(MeasureTime<21))
IfTrueAction21=[!SetVariable varTrack "Good evening"]
IfCondition22=((MeasureTime>=21)&&(MeasureTime<22))
IfTrueAction22=[!SetVariable varTrack "Good evening"]
IfCondition23=((MeasureTime>=22)&&(MeasureTime<23))
IfTrueAction23=[!SetVariable varTrack "Good evening"]
IfCondition24=((MeasureTime>=23)&&(MeasureTime<24))
IfTrueAction24=[[!SetVariable varTrack "Good evening"]
IfConditionMode=1

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
Substitute="": "#varTrack#"
DynamicVariables=1

[Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="":"#Name#"
DynamicVariables=1

[Micon]
Meter=Image
X=(#DefX#+50)
Y=(#DefY#+30)
W=(#iSize#*#Scale#)
H=(#iSize#*#Scale#)
ImageName=#@#icons\MusicNote#IconVariant#.png
LeftMouseUpAction=!Execute ["#PlayerPath#"]
DynamicVariables=1

[M_TRACK]
Meter=String
MeasureName=Track
X=((#DefX#+50) + ((#iSize#*#Scale#))/2)
Y=([Micon:Y]+(45*#Scale#))
W=1000*#Scale#
StringAlign=CenterCenter
FontColor=#PrimaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(15*#Scale#)
AntiAlias=1
Text=%1
DynamicVariables=1

[M_ARTIST]
Meter=String
MeasureName=Artist
X=((#DefX#+50) + ((#iSize#*#Scale#)/2))
Y=([M_TRACK:Y]+(20*#Scale#))
W=300*#Scale#
StringAlign=CenterCenter
FontColor=#SecondaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(10*#Scale#)
AntiAlias=1
Text=%1
DynamicVariables=1

You do not have the required permissions to view the files attached to this post.
I don't know where i going from here, but i promise it won't be boring... :great:
tegra
Posts: 6
Joined: September 6th, 2022, 6:47 am

Re: Help with Replacing Text with Greetings

Post by tegra »

tass_co wrote: September 6th, 2022, 2:48 pm First of all, my English is not good, sorry if I misunderstood.

I hope I understood correctly
For some reason I don't understand the WebNowPlaying plugin is not working for me.
Because of this, I am not sure about the WebNowPlaying part of the code.

I think you replaced %H with %S to see the result immediately.
The code below; If the title data is empty, it will show the statuses of the day according to the status of the clock.


GIF 6.09.2022 18-35-25.gif

Code: Select all

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

[Metadata]
Name=Music Info 2.0
Author=StarLender
Information=Ctrl + C (MusicInfo 1.0) then Ctrl + V then change font and add one icon... :P done !
Version=1.0.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
Scale=1.5
;Scale can be 1~5
FontName=Product Sans
PrimaryColor=255,255,255,255
SecondaryColor=255,255,255,125
IconVariant = W
;W "for White" and B for black
PlayerPath = ---                    
;<Path to your player/youplayer.exe> (excluding <>)
DefX = 450
DefY = 0
iSize=25
Name=Tegra
varTrack=Hello!

[MeasureStatus]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Status

[MeasureTime]
Measure=Time
Format=%S
RegExpSubstitute=1
Substitute="^([0-9])$":"\1"
IfCondition=((MeasureTime>=0)&&(MeasureTime<1))
IfTrueAction=[!SetVariable varTrack "It's Midnight"]
IfCondition2=((MeasureTime>=1)&&(MeasureTime<2))
IfTrueAction2=[!SetVariable varTrack "Getting late"]
IfCondition3=((MeasureTime>=2)&&(MeasureTime<3))
IfTrueAction3=[!SetVariable varTrack "Getting even later"]
IfCondition4=((MeasureTime>=3)&&(MeasureTime<4))
IfTrueAction4=[!SetVariable varTrack "Go to bed"]
IfCondition5=((MeasureTime>=4)&&(MeasureTime<5))
IfTrueAction5=[!SetVariable varTrack "What are you doing with your life?"]
IfCondition6=((MeasureTime>=5)&&(MeasureTime<6))
IfTrueAction6=[!SetVariable varTrack "Good Morning"]
IfCondition7=((MeasureTime>=6)&&(MeasureTime<7))
IfTrueAction7=[!SetVariable varTrack "Good Morning"]
IfCondition8=((MeasureTime>=7)&&(MeasureTime<8))
IfTrueAction8=[!SetVariable varTrack "Good Morning"]
IfCondition9=((MeasureTime>=8)&&(MeasureTime<9))
IfTrueAction9=[!SetVariable varTrack "Good Morning"]
IfCondition10=((MeasureTime>=9)&&(MeasureTime<10))
IfTrueAction10=[!SetVariable varTrack "Good Morning"]
IfCondition11=((MeasureTime>=10)&&(MeasureTime<11))
IfTrueAction11=[!SetVariable varTrack "Good Morning"]
IfCondition12=((MeasureTime>=11)&&(MeasureTime<12))
IfTrueAction12=[!SetVariable varTrack "Good Morning"]
IfCondition13=((MeasureTime>=12)&&(MeasureTime<13))
IfTrueAction13=[!SetVariable varTrack "It's Midday"]
IfCondition14=((MeasureTime>=13)&&(MeasureTime<14))
IfTrueAction14=[!SetVariable varTrack "Good afternoon"]
IfCondition15=((MeasureTime>=14)&&(MeasureTime<15))
IfTrueAction15=[!SetVariable varTrack "Good afternoon"]
IfCondition16=((MeasureTime>=15)&&(MeasureTime<16))
IfTrueAction16=[[!SetVariable varTrack "Good afternoon"]
IfCondition17=((MeasureTime>=16)&&(MeasureTime<17))
IfTrueAction17=[!SetVariable varTrack "Good afternoon"]
IfCondition18=((MeasureTime>=17)&&(MeasureTime<18))
IfTrueAction18=[!SetVariable varTrack "Good afternoon"]
IfCondition19=((MeasureTime>=18)&&(MeasureTime<19))
IfTrueAction19=[!SetVariable varTrack "Good evening"]
IfCondition20=((MeasureTime>=19)&&(MeasureTime<20))
IfTrueAction20=[!SetVariable varTrack "Good evening"]
IfCondition21=((MeasureTime>=20)&&(MeasureTime<21))
IfTrueAction21=[!SetVariable varTrack "Good evening"]
IfCondition22=((MeasureTime>=21)&&(MeasureTime<22))
IfTrueAction22=[!SetVariable varTrack "Good evening"]
IfCondition23=((MeasureTime>=22)&&(MeasureTime<23))
IfTrueAction23=[!SetVariable varTrack "Good evening"]
IfCondition24=((MeasureTime>=23)&&(MeasureTime<24))
IfTrueAction24=[[!SetVariable varTrack "Good evening"]
IfConditionMode=1

[Track]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title
Substitute="": "#varTrack#"
DynamicVariables=1

[Artist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist
Substitute="":"#Name#"
DynamicVariables=1

[Micon]
Meter=Image
X=(#DefX#+50)
Y=(#DefY#+30)
W=(#iSize#*#Scale#)
H=(#iSize#*#Scale#)
ImageName=#@#icons\MusicNote#IconVariant#.png
LeftMouseUpAction=!Execute ["#PlayerPath#"]
DynamicVariables=1

[M_TRACK]
Meter=String
MeasureName=Track
X=((#DefX#+50) + ((#iSize#*#Scale#))/2)
Y=([Micon:Y]+(45*#Scale#))
W=1000*#Scale#
StringAlign=CenterCenter
FontColor=#PrimaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(15*#Scale#)
AntiAlias=1
Text=%1
DynamicVariables=1

[M_ARTIST]
Meter=String
MeasureName=Artist
X=((#DefX#+50) + ((#iSize#*#Scale#)/2))
Y=([M_TRACK:Y]+(20*#Scale#))
W=300*#Scale#
StringAlign=CenterCenter
FontColor=#SecondaryColor#
FontFace=#FontName#
FontWeight=800
FontSize=(10*#Scale#)
AntiAlias=1
Text=%1
DynamicVariables=1

Ha! English is also not my first language. So I'm also not very good at it.
Anyway, thanks again. Since now the greetings are working, I'll just use this for the greetings. And keep the WebNowPlaying part separate from this. I'll post again as soon as I complete this.
I really appreciate you helping me. I have no idea how coding works, but I really love customization!
User avatar
tass_co
Posts: 427
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Help with Replacing Text with Greetings

Post by tass_co »

tegra wrote: September 6th, 2022, 4:33 pm I have no idea how coding works, but I really love customization!
We use Substitute to edit the incoming string.
We have to use IfCondition at your request.
Because to take action based on incoming data.

In [MeasureTime] measure;
I used Substitute to remove the "0" in the incoming data.
I set conditions based on data with IfCondition.
I passed the result of the IfCondition to varTrack variable.
I told the Substitute section in the [Track] measure section to add the varTrack variable if the incoming string is empty.
tegra wrote: September 6th, 2022, 4:33 pm And keep the WebNowPlaying part separate from this. I'll post again as soon as I complete this.
Sorry for that :confused:
tegra wrote: September 6th, 2022, 4:33 pm I really appreciate you helping me.
Glad If I could help :thumbup:
I don't know where i going from here, but i promise it won't be boring... :great: