It is currently May 18th, 2024, 12:17 pm

Music player infinite text flow

Get help with creating, editing & fixing problems with skins
Kaizenitsune
Posts: 33
Joined: December 9th, 2022, 3:25 am

Re: Music player infinite text flow

Post by Kaizenitsune »

I have now made a bit of order in the code, because every time I try to include the LUA file, the bars for the progress of the song and the volume disappear, the error I also do not get away.

Therefore I have removed the Lua completely from the skin for now and will create a test skin where I will try this further, but now I am a bit at a loss.

I have added my complete skin as an attachment.

In addition, I have found many more small problems that I do not manage to eliminate, but I did not want to write all that here now.
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16234
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Music player infinite text flow

Post by balala »

Kaizenitsune wrote: December 11th, 2022, 8:15 pm Therefore I have removed the Lua completely from the skin for now and will create a test skin where I will try this further, but now I am a bit at a loss.
And what should we (I) do further, if you removed the Lua script?
Kaizenitsune wrote: December 11th, 2022, 8:15 pm In addition, I have found many more small problems that I do not manage to eliminate, but I did not want to write all that here now.
You should name the problems, because it would be much easier to know what should we do.
Kaizenitsune
Posts: 33
Joined: December 9th, 2022, 3:25 am

Re: Music player infinite text flow

Post by Kaizenitsune »

balala wrote: December 12th, 2022, 7:36 pm And what should we (I) do further, if you removed the Lua script?

You should name the problems, because it would be much easier to know what should we do.
I'm sorry, I'll take care that I reproduce everything again and then send the code in here

I did not know whether I should send the problems also here purely or open a new topic, but I will list here again everything which in such a way struck me
User avatar
balala
Rainmeter Sage
Posts: 16234
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Music player infinite text flow

Post by balala »

Kaizenitsune wrote: December 12th, 2022, 7:49 pm I'm sorry, I'll take care that I reproduce everything again and then send the code in here
Ok, please do so. Waiting until then...
Kaizenitsune wrote: December 12th, 2022, 7:49 pm I did not know whether I should send the problems also here purely or open a new topic, but I will list here again everything which in such a way struck me
As you want, but since the problems are related to the same code / skin, don't open a new topic.
Kaizenitsune
Posts: 33
Joined: December 9th, 2022, 3:25 am

Re: Music player infinite text flow

Post by Kaizenitsune »

balala wrote: December 12th, 2022, 8:28 pm Ok, please do so. Waiting until then...
That would be the code now, I don't know how or what it was due to, but that works now so far with the Marquee.

Code: Select all

[Rainmeter]
Update=200
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 1 ? 1 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 1 ? 1 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
MouseActionCursorName=Hand
MouseOverAction=!CommandMeasure Lua Pause=0
MouseLeaveAction=!CommandMeasure Lua Pause=1
 
[Variables]
ScrollMouseIncrement=0.1
Player=Spotify
Scale=3.1
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
AlmostBlack=40,40,40,255
AlmostWhite=211,40,56

;-------------------------------------------------------------

[MeasureStatus]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=STATUS
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowFade]
IfFalseAction=[!HideFade]

;-----[Album Art]-----

[MeasureAlbumArt] 
Measure=Plugin 
Plugin=WebNowPlaying 
PlayerName=#Player# 
PlayerType=COVER 

[MeterAlbumArt] 
Meter=Image 
MeasureName=MeasureAlbumArt 
Meter=String 
MeasureName=MeasureTitle 
StringAlign=Left 
X=(0*#Scale#) 
Y=(0*#Scale#) 
W=(100*#Scale#) 
Text="%1" 
ClipString=1 
AntiAlias=1 
 
;-----[Title]----- 

[MeasureTitle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=TITLE
Substitue="":""

[LuaTitle]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureTitle

[MeterTitle]
Meter=String
MeasureName=LuaTitle
StringAlign=Left
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(8*#Scale#)
X=(105*#Scale#)
Y=(5*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1

;-----[Artist]----- 

[MeasureArtist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=ARTIST
Substitue="":""

[LuaArtist]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureArtist

[MeterArtist]
Meter=String
MeasureName=LuaArtist
StringAlign=Left
StringCase=Upper
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(7*#Scale#)
X=(105*#Scale#)
Y=(18*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1

;-----[Album Title]-----

[MeasureAlbum]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=ALBUM
Substitue="":""

[LuaAlbum]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureAlbum

[MeterAlbum]
Meter=String
MeterStyle=SpotifyStyleAlbum
MeasureName=LuaAlbum
StringAlign=Left
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(6*#Scale#)
X=(105*#Scale#)
Y=(30*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1

;-----[Song Progress]-----

[MeasureProgress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=PROGRESS

[MeterBar]
Meter=Shape
X=(105*#Scale#)
Y=(70*#Scale#)
Shape=Rectangle 0,0,(130*#Scale#),(1.5*#Scale#),0 | Fill Color 255,255,255,30 | StrokeWidth 0
Shape2=Rectangle 0,0,([MeasureProgress]*1.2*#Scale#),(1.5*#Scale#),0 | Fill Color 211,40,56 | StrokeWidth 0
Shape3=Ellipse ([MeasureProgress]*1.2*#Scale#),(0.8*#Scale#),(1.5*#Scale#) |Fill Color 255,255,255 | StrokeWidth 0
Shape4=Rectangle 0,(-1*#Scale#),(120*#Scale#),(3*#Scale#),0 | Fill Color 255,255,255,1 | StrokeWidth 0
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureProgress" "SetPosition $MouseX:%$"]

;-----[Song Duration]-----

[MeasureDuration]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=DURATION

[MeasurePosition]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Position
UpdateDivider = 5
Substitute="":"N/A"

[MeasureMinutesRemaining]
Measure=Calc
Formula=Trunc((MeasureDuration - MeasurePosition)/60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"

[MeasureSecondsRemaining]
Measure=Calc
Formula=((MeasureDuration - MeasurePosition) % 60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"

[MeterDuration]
Meter=String
MeasureName=MeasureDuration
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(112*#Scale#)
Y=(75*#Scale#)
Text="%1"
AntiAlias=1

[MeterDuration2]
Meter=String
MeasureName=MeasureMinutesRemaining
MeasureName2=MeasureSecondsRemaining
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(226*#Scale#)
Y=(75*#Scale#)
Text="%1:%2"
AntiAlias=1

;-----[Song Play & Pause]-----

[MeasureStateButton]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=STATE
Substitute="0":"#@#Images\Play.png","1":"#@#Images\Pause.png","2":"#@#Images\Play.png"

[MeterPlayPause]
Meter=Image
ImageName=[MeasureStateButton]
X=(160*#Scale#)
Y=(50*#Scale#)
W=(15*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureStateButton" "PlayPause"]

;-----[Song Previous]-----

[MeterPrevious]
Meter=Image
ImageName=#@#Images\Previous.png
X=(145*#Scale#)
Y=(52*#Scale#)
W=(10*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Previous"]

;-----[Song Next]-----

[MeterNext]
Meter=Image
ImageName=#@#Images\Next.png
X=(180*#Scale#)
Y=(52*#Scale#)
W=(10*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Next"]

;-----[Song Heart]-----

[MeasureHeartRaw]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Rating
IfCondition=MeasureHeartRaw = 0
IfTrueAction=[!SetOption MeterHeart ImageTint "#MediumBlue#"]
IfCondition2=MeasureHeartRaw = 5
IfTrueAction2=[!SetOption MeterHeart ImageTint "#AlmostWhite#"]

[MeasureHeart]
Measure=Calc
Formula=(MeasureHeartRaw=5 ? 0 : 5)

[MeterHeart]
Meter=Image
ImageName=#@#images\heart.png
ImageTint=#AlmostWhite#
X=(145*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureHeartRaw "SetRating [&MeasureHeart]"]
AntiAlias=1

;-----[Song Shuffle]-----

[MeasureShuffle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Shuffle
IfCondition=MeasureShuffle = 0
IfTrueAction=[!SetOption MeterShuffle ImageTint "#MediumBlue#"]
IfCondition2=MeasureShuffle = 1
IfTrueAction2=[!SetOption MeterShuffle ImageTint "#AlmostWhite#"]

[MeterShuffle]
Meter=Image
ImageName=#@#Images\shuffle.png
ImageTint=#AlmostWhite#
X=(160*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
Group=DynamicColors
LeftMouseUpAction=[!CommandMeasure MeasureShuffle "Shuffle"]
AntiAlias=1

;-----[Song Repeat]-----

[MeasureRepeat]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Repeat
IfCondition=MeasureRepeat = 0
IfTrueAction=[!SetOption MeterRepeat ImageTint "#MediumBlue#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition2=MeasureRepeat = 1
IfTrueAction2=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition3=MeasureRepeat = 2
IfTrueAction3=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]

[MeterRepeat]
Meter=Image
ImageName=#@#Images\shuffle.png
ImageTint=#AlmostWhite#
X=(175*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
Group=DynamicColors
LeftMouseUpAction=[!CommandMeasure MeasureRepeat "Repeat"]
AntiAlias=1

;-----[Song Volume]-----

[MeasureVolume]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
MinValue=0
MaxValue=100
IfCondition=MeasureVolume = 0
IfTrueAction=[!SetOption MeterVolumeIcon ImageName "#@#Images\volMute.png"]
IfCondition2=(MeasureVolume >= 1) && (MeasureVolume <= 32)
IfTrueAction2=[!SetOption MeterVolumeIcon ImageName "#@#Images\volLow.png"]
IfCondition3=(MeasureVolume >= 33) && (MeasureVolume <= 65)
IfTrueAction3=[!SetOption MeterVolumeIcon ImageName "#@#Images\volMed.png"]
IfCondition4=MeasureVolume >= 66
IfTrueAction4=[!SetOption MeterVolumeIcon ImageName "#@#Images\volHigh.png"]

[MeasureVolumePercentage]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
Substitute="":"N/A"

[MeterVolumeIcon]
Meter=Image
ImageName=#@#Images\volMute.png
ImageTint=#AlmostWhite#
X=(103*#Scale#)
Y=(85*#Scale#)
W=(17*#Scale#)
H=(17*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureVolume "SetVolume 0"]
AntiAlias=1

[MeterVolumeBar]
Meter=Bar
Meter=Ellipse
MeasureName=MeasureVolume
BarOrientation=Horizontal
BarColor=#AlmostWhite#
SolidColor=#DarkBlue#
X=(120*#Scale#)
Y=(93*#Scale#)
W=(95*#Scale#)
H=(1.5*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureVolume "SetVolume $MouseX:%$"]

[MeterVolume]
Meter=String
MeasureName=MeasureVolumePercentage
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(226*#Scale#)
Y=(91*#Scale#)
Text=%1%
AntiAlias=1
balala wrote: December 12th, 2022, 8:28 pm As you want, but since the problems are related to the same code / skin, don't open a new topic.
The other points are that the color of the heart, repat, shuffle, volume icon, the volume bar and the percent indicator are much darker than those of the play, next, previous and all the rest.

I would prefer that the things are darker when they are not active, but when I click on them they have the same color as the rest. I know that I have defined the colors at the top of the code, but I can't do that.

The next point would be that I would like to have the volume bar formatted the same way as the progress bar.
So the same bar color and also a circle at the end of the bar.
User avatar
balala
Rainmeter Sage
Posts: 16234
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Music player infinite text flow

Post by balala »

Kaizenitsune wrote: December 12th, 2022, 9:06 pm That would be the code now, I don't know how or what it was due to, but that works now so far with the Marquee.
:thumbup:
Kaizenitsune wrote: December 12th, 2022, 9:06 pm I would prefer that the things are darker when they are not active, but when I click on them they have the same color as the rest. I know that I have defined the colors at the top of the code, but I can't do that.
This theoreticaly should be pretty easy, but the ImageTint option of the [MeterHeart], [MeterShuffle] and [MeterRepeat] meters is set by the IfTrueActionX options of the [MeasureHeartRaw], [MeasureShuffle] and [MeasureRepeat] measures appropriately, which complicates a little bit the solution. You have to extend the IfConditions to get distinct cases when you1re hovering the mouse over and leaving the meters.
If you want to do this, do the followings:
  • Add the following variables to the [Variables] section:

    Code: Select all

    [Variables]
    ...
    Heart=0
    Shuffle=0
    Repeat=0
    Take care not to modify the other existing variables.
  • Add the following options to the [MeterHeart], [MeterShuffle] and [MeterRepeat] meters:

    Code: Select all

    [MeterHeart]
    ...
    MouseOverAction=[!SetVariable Heart "1"][!UpdateMeasure "MeasureHeartRaw"]
    MouseLeaveAction=[!SetVariable Heart "0"][!UpdateMeasure "MeasureHeartRaw"]
    SolidColor=0,0,0,1
    
    ...
    
    [MeterShuffle]
    ...
    MouseOverAction=[!SetVariable Shuffle "1"][!UpdateMeasure "MeasureShuffle"]
    MouseLeaveAction=[!SetVariable Shuffle "0"][!UpdateMeasure "MeasureShuffle"]
    SolidColor=0,0,0,1
    
    ...
    
    [MeterRepeat]
    ...
    MouseOverAction=[!SetVariable Repeat "1"][!UpdateMeasure "Measurerepeat"]
    MouseLeaveAction=[!SetVariable  Repeat "0"][!UpdateMeasure "MeasureRepeat"]
    SolidColor=0,0,0,1
    With these options added, you get the appropriate variable set to 1 when hovering the mouse over the appropriate button and to 0 when you're leaving the meter. Once again make sure not to modify the not-posted options, just add these ones.
    See that beside adding these options, I also added a Solidcolor=0,0,0,1 option to all meters. Without this option, the mouse interaction with the meter is difficult, you have to hover the mouse right above the lines of the image. The above SolidColor option adds a not-visible background to the meters, making much more easier to interact with the meter.
  • Modify the IfCondition and the appropriate IfTrueAction options of all three measures ([MeasureHeartRaw], [MeasureShuffle] and [MeasureRepeat]) as it follows AND add the DynamicVariables=1 option to all of those measures (extremely important, please don't forget adding it):

    Code: Select all

    [MeasureHeartRaw]
    ...
    IfCondition=((MeasureHeartRaw=0)&&(#Heart#=0))
    IfTrueAction=[!SetOption MeterHeart ImageTint "#MediumBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition2=((MeasureHeartRaw=5)&&(#Heart#=0))
    IfTrueAction2=[!SetOption MeterHeart ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition3=((MeasureHeartRaw=0)&&(#Heart#=1))
    IfTrueAction3=[!SetOption MeterHeart ImageTint "#COLOR1#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition4=((MeasureHeartRaw=5)&&(#Heart#=1))
    IfTrueAction4=[!SetOption MeterHeart ImageTint "#COLOR2#"][!UpdateMeter "MeterHeart"][!Redraw]
    DynamicVariables=1
    
    ...
    
    [MeasureShuffle]
    ...
    IfCondition=((MeasureShuffle=0)&&(#Shuffle#=0))
    IfTrueAction=[!SetOption MeterShuffle ImageTint "#MediumBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition2=((MeasureShuffle=5)&&(#Shuffle#=0))
    IfTrueAction2=[!SetOption MeterShuffle ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition3=((MeasureShuffle=0)&&(#Shuffle#=1))
    IfTrueAction3=[!SetOption MeterShuffle ImageTint "#COLOR1#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition4=((MeasureShuffle=5)&&(#Shuffle#=1))
    IfTrueAction4=[!SetOption MeterShuffle ImageTint "#COLOR2#"][!UpdateMeter "MeterHeart"][!Redraw]
    DynamicVariables=1
    
    ...
    
    [MeasureRepeat]
    ...
    IfCondition=((MeasureRepeat=0)&&(#Repeat#=0))
    IfTrueAction=[!SetOption MeterRepeat ImageTint "#MediumBlue#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
    IfCondition2=((MeasureRepeat=1)&&(#Repeat#=0))
    IfTrueAction2=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
    IfCondition3=((MeasureRepeat=2)&&(#Repeat#=0))
    IfTrueAction3=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
    IfCondition4=((MeasureRepeat=0)&&(#Repeat#=1))
    IfTrueAction4=[!SetOption MeterRepeat ImageTint "#COLOR1#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
    IfCondition5=((MeasureRepeat=1)&&(#Repeat#=1))
    IfTrueAction5=[!SetOption MeterRepeat ImageTint "#COLOR2#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
    IfCondition6=((MeasureRepeat=2)&&(#Repeat#=1))
    IfTrueAction6=[!SetOption MeterRepeat ImageTint "#COLOR3#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
    DynamicVariables=1
    Note that the colors set with the newly added IfTrueAction options are arbitrary set, because I didn't really know what colors do you want to use. Add please the desired colors to each option.
Kaizenitsune wrote: December 12th, 2022, 9:06 pm The next point would be that I would like to have the volume bar formatted the same way as the progress bar.
So the same bar color and also a circle at the end of the bar.
Let's leave this for the next reply and try now just to modify the [MeterHeart], [MeterShuffle] and [MeterRepeat] meters, as described above. If you got them working as expected, on next step we'll so this as well.

One more detail I have to let you know. This is not related to any of the above things. You have a Meter=Ellipse option on the [MeterVolumeBar] meter. This option is not valid, such a meter doesn't exist, but doesn't create trouble, because it's the second Meter option on the [MeterVolumeBar] meter, and as such, it is simply ignored (on previous option the meter is set to Meter=Bar). However I recommend to remove it.
Kaizenitsune
Posts: 33
Joined: December 9th, 2022, 3:25 am

Re: Music player infinite text flow

Post by Kaizenitsune »

balala wrote: December 13th, 2022, 8:50 pm This theoreticaly should be pretty easy, but the ImageTint option of the [MeterHeart], [MeterShuffle] and [MeterRepeat] meters is set by the IfTrueActionX options of the [MeasureHeartRaw], [MeasureShuffle] and [MeasureRepeat] measures appropriately, which complicates a little bit the solution. You have to extend the IfConditions to get distinct cases when you1re hovering the mouse over and leaving the meters.
If you want to do this, do the followings:
  • Add the following variables to the [Variables] section:

    Code: Select all

    [Variables]
    ...
    Heart=0
    Shuffle=0
    Repeat=0
    Take care not to modify the other existing variables.
  • Add the following options to the [MeterHeart], [MeterShuffle] and [MeterRepeat] meters:

    Code: Select all

    [MeterHeart]
    ...
    MouseOverAction=[!SetVariable Heart "1"][!UpdateMeasure "MeasureHeartRaw"]
    MouseLeaveAction=[!SetVariable Heart "0"][!UpdateMeasure "MeasureHeartRaw"]
    SolidColor=0,0,0,1
    
    ...
    
    [MeterShuffle]
    ...
    MouseOverAction=[!SetVariable Shuffle "1"][!UpdateMeasure "MeasureShuffle"]
    MouseLeaveAction=[!SetVariable Shuffle "0"][!UpdateMeasure "MeasureShuffle"]
    SolidColor=0,0,0,1
    
    ...
    
    [MeterRepeat]
    ...
    MouseOverAction=[!SetVariable Repeat "1"][!UpdateMeasure "Measurerepeat"]
    MouseLeaveAction=[!SetVariable  Repeat "0"][!UpdateMeasure "MeasureRepeat"]
    SolidColor=0,0,0,1
    With these options added, you get the appropriate variable set to 1 when hovering the mouse over the appropriate button and to 0 when you're leaving the meter. Once again make sure not to modify the not-posted options, just add these ones.
    See that beside adding these options, I also added a Solidcolor=0,0,0,1 option to all meters. Without this option, the mouse interaction with the meter is difficult, you have to hover the mouse right above the lines of the image. The above SolidColor option adds a not-visible background to the meters, making much more easier to interact with the meter.
  • Modify the IfCondition and the appropriate IfTrueAction options of all three measures ([MeasureHeartRaw], [MeasureShuffle] and [MeasureRepeat]) as it follows AND add the DynamicVariables=1 option to all of those measures (extremely important, please don't forget adding it):

    Code: Select all

    [MeasureHeartRaw]
    ...
    IfCondition=((MeasureHeartRaw=0)&&(#Heart#=0))
    IfTrueAction=[!SetOption MeterHeart ImageTint "#MediumBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition2=((MeasureHeartRaw=5)&&(#Heart#=0))
    IfTrueAction2=[!SetOption MeterHeart ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition3=((MeasureHeartRaw=0)&&(#Heart#=1))
    IfTrueAction3=[!SetOption MeterHeart ImageTint "#COLOR1#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition4=((MeasureHeartRaw=5)&&(#Heart#=1))
    IfTrueAction4=[!SetOption MeterHeart ImageTint "#COLOR2#"][!UpdateMeter "MeterHeart"][!Redraw]
    DynamicVariables=1
    
    ...
    
    [MeasureShuffle]
    ...
    IfCondition=((MeasureShuffle=0)&&(#Shuffle#=0))
    IfTrueAction=[!SetOption MeterShuffle ImageTint "#MediumBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition2=((MeasureShuffle=5)&&(#Shuffle#=0))
    IfTrueAction2=[!SetOption MeterShuffle ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition3=((MeasureShuffle=0)&&(#Shuffle#=1))
    IfTrueAction3=[!SetOption MeterShuffle ImageTint "#COLOR1#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition4=((MeasureShuffle=5)&&(#Shuffle#=1))
    IfTrueAction4=[!SetOption MeterShuffle ImageTint "#COLOR2#"][!UpdateMeter "MeterHeart"][!Redraw]
    DynamicVariables=1
    
    ...
    
    [MeasureRepeat]
    ...
    IfCondition=((MeasureRepeat=0)&&(#Repeat#=0))
    IfTrueAction=[!SetOption MeterRepeat ImageTint "#MediumBlue#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
    IfCondition2=((MeasureRepeat=1)&&(#Repeat#=0))
    IfTrueAction2=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
    IfCondition3=((MeasureRepeat=2)&&(#Repeat#=0))
    IfTrueAction3=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
    IfCondition4=((MeasureRepeat=0)&&(#Repeat#=1))
    IfTrueAction4=[!SetOption MeterRepeat ImageTint "#COLOR1#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
    IfCondition5=((MeasureRepeat=1)&&(#Repeat#=1))
    IfTrueAction5=[!SetOption MeterRepeat ImageTint "#COLOR2#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
    IfCondition6=((MeasureRepeat=2)&&(#Repeat#=1))
    IfTrueAction6=[!SetOption MeterRepeat ImageTint "#COLOR3#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
    DynamicVariables=1
    Note that the colors set with the newly added IfTrueAction options are arbitrary set, because I didn't really know what colors do you want to use. Add please the desired colors to each option.
Thank you very much for the effort, so as soon as I go over it with the mouse the color is used that I would like to have, I will sit down tomorrow again and try a little bit that the color I get when I go over it with the mouse, is the color that should be so when I clicked on it and the other way around. This should work by changing the values.
However, I don't get the mousover effect with Shuffle and Repeat, but I will have a closer look at that tomorrow as well. :D

This has already helped me a lot thanks.

Meter=Ellipse was still a remnant of the attempt to add an ellipse there, I have directly removed.

As soon as I get the colors as I want them I'll get back to you about the other problem.
Kaizenitsune
Posts: 33
Joined: December 9th, 2022, 3:25 am

Re: Music player infinite text flow

Post by Kaizenitsune »

I have now managed that heart is in the desired color when I click on it, I tried to do the same with Shuffle and Repeat, but Shuffle now remains permanently in the color and Repeat has not changed a bit, the mousover no longer has with all three. Although with Heart I really only changed the color.

Code: Select all

[Rainmeter]
Update=200
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 1 ? 1 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 1 ? 1 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
MouseActionCursorName=Hand
MouseOverAction=!CommandMeasure Lua Pause=0
MouseLeaveAction=!CommandMeasure Lua Pause=1
 
[Variables]
ScrollMouseIncrement=0.1
Player=Spotify
Scale=3.1
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
AlmostBlack=40,40,40,255
AlmostWhite=211,40,56
Heart=0
Shuffle=0
Repeat=0

;-------------------------------------------------------------

[MeasureStatus]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=STATUS
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowFade]
IfFalseAction=[!HideFade]

;-----[Album Art]-----

[MeasureAlbumArt] 
Measure=Plugin 
Plugin=WebNowPlaying 
PlayerName=#Player# 
PlayerType=COVER 

[MeterAlbumArt] 
Meter=Image 
MeasureName=MeasureAlbumArt 
Meter=String 
MeasureName=MeasureTitle 
StringAlign=Left 
X=(0*#Scale#) 
Y=(0*#Scale#) 
W=(100*#Scale#) 
Text="%1" 
ClipString=1 
AntiAlias=1 
 
;-----[Title]----- 

[MeasureTitle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=TITLE
Substitue="":""

[LuaTitle]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureTitle

[MeterTitle]
Meter=String
MeasureName=LuaTitle
StringAlign=Left
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(8*#Scale#)
X=(105*#Scale#)
Y=(5*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1

;-----[Artist]----- 

[MeasureArtist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=ARTIST
Substitue="":""

[LuaArtist]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureArtist

[MeterArtist]
Meter=String
MeasureName=LuaArtist
StringAlign=Left
StringCase=Upper
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(7*#Scale#)
X=(105*#Scale#)
Y=(18*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1

;-----[Album Title]-----

[MeasureAlbum]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=ALBUM
Substitue="":""

[LuaAlbum]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureAlbum

[MeterAlbum]
Meter=String
MeterStyle=SpotifyStyleAlbum
MeasureName=LuaAlbum
StringAlign=Left
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(6*#Scale#)
X=(105*#Scale#)
Y=(30*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1

;-----[Song Progress]-----

[MeasureProgress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=PROGRESS

[MeterBar]
Meter=Shape
X=(105*#Scale#)
Y=(70*#Scale#)
Shape=Rectangle 0,0,(130*#Scale#),(1.5*#Scale#),0 | Fill Color 255,255,255,30 | StrokeWidth 0
Shape2=Rectangle 0,0,([MeasureProgress]*1.2*#Scale#),(1.5*#Scale#),0 | Fill Color 211,40,56 | StrokeWidth 0
Shape3=Ellipse ([MeasureProgress]*1.2*#Scale#),(0.8*#Scale#),(1.5*#Scale#) |Fill Color 255,255,255 | StrokeWidth 0
Shape4=Rectangle 0,(-1*#Scale#),(120*#Scale#),(3*#Scale#),0 | Fill Color 255,255,255,1 | StrokeWidth 0
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureProgress" "SetPosition $MouseX:%$"]

;-----[Song Duration]-----

[MeasureDuration]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=DURATION

[MeasurePosition]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Position
UpdateDivider = 5
Substitute="":"N/A"

[MeasureMinutesRemaining]
Measure=Calc
Formula=Trunc((MeasureDuration - MeasurePosition)/60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"

[MeasureSecondsRemaining]
Measure=Calc
Formula=((MeasureDuration - MeasurePosition) % 60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"

[MeterDuration]
Meter=String
MeasureName=MeasureDuration
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(112*#Scale#)
Y=(75*#Scale#)
Text="%1"
AntiAlias=1

[MeterDuration2]
Meter=String
MeasureName=MeasureMinutesRemaining
MeasureName2=MeasureSecondsRemaining
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(226*#Scale#)
Y=(75*#Scale#)
Text="%1:%2"
AntiAlias=1

;-----[Song Play & Pause]-----

[MeasureStateButton]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=STATE
Substitute="0":"#@#Images\Play.png","1":"#@#Images\Pause.png","2":"#@#Images\Play.png"

[MeterPlayPause]
Meter=Image
ImageName=[MeasureStateButton]
X=(160*#Scale#)
Y=(50*#Scale#)
W=(15*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureStateButton" "PlayPause"]

;-----[Song Previous]-----

[MeterPrevious]
Meter=Image
ImageName=#@#Images\Previous.png
X=(145*#Scale#)
Y=(52*#Scale#)
W=(10*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Previous"]

;-----[Song Next]-----

[MeterNext]
Meter=Image
ImageName=#@#Images\Next.png
X=(180*#Scale#)
Y=(52*#Scale#)
W=(10*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Next"]

;-----[Song Heart]-----

[MeasureHeartRaw]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Rating
IfCondition=MeasureHeartRaw = 0
IfTrueAction=[!SetOption MeterHeart ImageTint "#MediumBlue#"]
IfCondition2=MeasureHeartRaw = 5
IfTrueAction2=[!SetOption MeterHeart ImageTint "#AlmostWhite#"]
IfCondition=((MeasureHeartRaw=0)&&(#Heart#=0))
IfTrueAction=[!SetOption MeterHeart ImageTint "#MediumBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition2=((MeasureHeartRaw=5)&&(#Heart#=0))
IfTrueAction2=[!SetOption MeterHeart ImageTint "#COLOR1#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition3=((MeasureHeartRaw=0)&&(#Heart#=1))
IfTrueAction3=[!SetOption MeterHeart ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition4=((MeasureHeartRaw=5)&&(#Heart#=1))
IfTrueAction4=[!SetOption MeterHeart ImageTint "#COLOR2#"][!UpdateMeter "MeterHeart"][!Redraw]
DynamicVariables=1

[MeasureHeart]
Measure=Calc
Formula=(MeasureHeartRaw=5 ? 0 : 5)

[MeterHeart]
Meter=Image
ImageName=#@#images\heart.png
ImageTint=#AlmostWhite#
X=(145*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureHeartRaw "SetRating [&MeasureHeart]"]
AntiAlias=1
MouseOverAction=[!SetVariable Heart "1"][!UpdateMeasure "MeasureHeartRaw"]
MouseLeaveAction=[!SetVariable Heart "0"][!UpdateMeasure "MeasureHeartRaw"]
SolidColor=0,0,0,1

;-----[Song Shuffle]-----

[MeasureShuffle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Shuffle
IfCondition=MeasureShuffle = 0
IfCondition=((MeasureShuffle=0)&&(#Shuffle#=0))
IfTrueAction=[!SetOption MeterShuffle ImageTint "#MediumBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition2=((MeasureShuffle=5)&&(#Shuffle#=0))
IfTrueAction2=[!SetOption MeterShuffle ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition3=((MeasureShuffle=0)&&(#Shuffle#=1))
IfTrueAction3=[!SetOption MeterShuffle ImageTint "#COLOR1#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition4=((MeasureShuffle=5)&&(#Shuffle#=1))
IfTrueAction4=[!SetOption MeterShuffle ImageTint "#COLOR2#"][!UpdateMeter "MeterHeart"][!Redraw]
DynamicVariables=1

[MeterShuffle]
Meter=Image
ImageName=#@#Images\shuffle.png
ImageTint=#AlmostWhite#
X=(160*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
Group=DynamicColors
LeftMouseUpAction=[!CommandMeasure MeasureShuffle "Shuffle"]
AntiAlias=1
MouseOverAction=[!SetVariable Shuffle "1"][!UpdateMeasure "MeasureShuffle"]
MouseLeaveAction=[!SetVariable Shuffle "0"][!UpdateMeasure "MeasureShuffle"]
SolidColor=0,0,0,1

;-----[Song Repeat]-----

[MeasureRepeat]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Repeat
IfCondition=MeasureRepeat = 0
IfTrueAction=[!SetOption MeterRepeat ImageTint "#MediumBlue#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition2=MeasureRepeat = 1
IfTrueAction2=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition3=MeasureRepeat = 2
IfTrueAction3=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]

[MeterRepeat]
Meter=Image
ImageName=#@#Images\shuffle.png
ImageTint=#AlmostWhite#
X=(175*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
Group=DynamicColors
LeftMouseUpAction=[!CommandMeasure MeasureRepeat "Repeat"]
AntiAlias=1
MouseOverAction=[!SetVariable Repeat "1"][!UpdateMeasure "Measurerepeat"]
MouseLeaveAction=[!SetVariable  Repeat "0"][!UpdateMeasure "MeasureRepeat"]
SolidColor=0,0,0,1
IfCondition=((MeasureRepeat=0)&&(#Repeat#=0))
IfTrueAction=[!SetOption MeterRepeat ImageTint "#MediumBlue#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition2=((MeasureRepeat=1)&&(#Repeat#=0))
IfTrueAction2=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition3=((MeasureRepeat=2)&&(#Repeat#=0))
IfTrueAction3=[!SetOption MeterRepeat ImageTint "#COLOR1#""][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
IfCondition4=((MeasureRepeat=0)&&(#Repeat#=1))
IfTrueAction4=[!SetOption MeterRepeat ImageTint "#COLOR1#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition5=((MeasureRepeat=1)&&(#Repeat#=1))
IfTrueAction5=[!SetOption MeterRepeat ImageTint "#COLOR2#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition6=((MeasureRepeat=2)&&(#Repeat#=1))
IfTrueAction6=[!SetOption MeterRepeat ImageTint "#COLOR3#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
DynamicVariables=1

;-----[Song Volume]-----

[MeasureVolume]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
MinValue=0
MaxValue=100
IfCondition=MeasureVolume = 0
IfTrueAction=[!SetOption MeterVolumeIcon ImageName "#@#Images\volMute.png"]
IfCondition2=(MeasureVolume >= 1) && (MeasureVolume <= 32)
IfTrueAction2=[!SetOption MeterVolumeIcon ImageName "#@#Images\volLow.png"]
IfCondition3=(MeasureVolume >= 33) && (MeasureVolume <= 65)
IfTrueAction3=[!SetOption MeterVolumeIcon ImageName "#@#Images\volMed.png"]
IfCondition4=MeasureVolume >= 66
IfTrueAction4=[!SetOption MeterVolumeIcon ImageName "#@#Images\volHigh.png"]

[MeasureVolumePercentage]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
Substitute="":"N/A"

[MeterVolumeIcon]
Meter=Image
ImageName=#@#Images\volMute.png
ImageTint=#AlmostWhite#
X=(103*#Scale#)
Y=(85*#Scale#)
W=(17*#Scale#)
H=(17*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureVolume "SetVolume 0"]
AntiAlias=1

[MeterVolumeBar]
Meter=Bar
MeasureName=MeasureVolume
BarOrientation=Horizontal
BarColor=#AlmostWhite#
SolidColor=#DarkBlue#
X=(120*#Scale#)
Y=(93*#Scale#)
W=(95*#Scale#)
H=(1.5*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureVolume "SetVolume $MouseX:%$"]

[MeterVolume]
Meter=String
MeasureName=MeasureVolumePercentage
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(226*#Scale#)
Y=(91*#Scale#)
Text=%1%
AntiAlias=1
User avatar
balala
Rainmeter Sage
Posts: 16234
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Music player infinite text flow

Post by balala »

Kaizenitsune wrote: December 14th, 2022, 2:17 pm I have now managed that heart is in the desired color when I click on it,
None of the buttons have options to change the color when clicking. The colors are changing only when you're hovering the mouse over and leaving the meters. For first let's finish the mouse hovering question, then further options can be added to change the colors when clicking as well.
Kaizenitsune wrote: December 14th, 2022, 2:17 pm I tried to do the same with Shuffle and Repeat, but Shuffle now remains permanently in the color and Repeat has not changed a bit, the mousover no longer has with all three. Although with Heart I really only changed the color.
None of the three buttons doesn't work properly, because there still are some problems:
  • You didn't remove the original IfCondition / IfTrueAction and IfCondition2 / IfTrueAction2 option pairs of the [MeasureHeartRaw] measure. Due to this, the newly added options don1t work, they being the second such options in the measure. So, remove the following options:

    Code: Select all

    [MeasureHeartRaw]
    ...
    IfCondition=MeasureHeartRaw = 0
    IfTrueAction=[!SetOption MeterHeart ImageTint "#MediumBlue#"]
    IfCondition2=MeasureHeartRaw = 5
    IfTrueAction2=[!SetOption MeterHeart ImageTint "#AlmostWhite#"]
    and leave the new ones. With this the measure will look this way:

    Code: Select all

    [MeasureHeartRaw]
    Measure=Plugin
    Plugin=WebNowPlaying
    PlayerType=Rating
    IfCondition=((MeasureHeartRaw=0)&&(#Heart#=0))
    IfTrueAction=[!SetOption MeterHeart ImageTint "#MediumBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition2=((MeasureHeartRaw=5)&&(#Heart#=0))
    IfTrueAction2=[!SetOption MeterHeart ImageTint "#COLOR1#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition3=((MeasureHeartRaw=0)&&(#Heart#=1))
    IfTrueAction3=[!SetOption MeterHeart ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
    IfCondition4=((MeasureHeartRaw=5)&&(#Heart#=1))
    IfTrueAction4=[!SetOption MeterHeart ImageTint "#COLOR2#"][!UpdateMeter "MeterHeart"][!Redraw]
    DynamicVariables=1
    Keep in mind please that you can't add twice the same option into any section, the second occurrence is simply ignored by Rainmeter (general rule for .ini formatted files, even outside of Rainmeter).
  • In the above IfTrueAction2 and IfTrueAction4 options you've used two color codes, which are not defined (#COLOR1# and #COLOR2#). Yes, these are the codes I posted, but I told you to take care to add the colors to the [Variables] section. For instance:

    Code: Select all

    [Variables]
    ...
    Heart=0
    Shuffle=0
    Repeat=0
    COLOR1=255,255,255
    COLOR2=0,0,0
    Once again: I added the above color arbitrary, not knowing what color would you like to use. Please use the desired color codes.
  • The same thing related to the COLOR1 and COLOR2 variables are applying to the [MeasureShuffle] measure as well. Once the color defined into the [Variables] section, this measure will also be able to use them.
  • [MeasureRepeat] is practically the same as the one you had in previous code. I assume you've forgot to replace it with the one posted in my reply. Accordingly the color change of the [MeterRepeat] meter can't even work. Please replace the measure, taking into account what I said about the COLOR1 and COLOR2 variables as well.
And one more: since the images used by the [MeterHeart], [MeterShuffle] and [MeterRepeat] meters are red, when applying some color with ImageTint option, you don't always get the color set to the option. I recommend to give a "manual" try, setting the desired color directly to the meter, to see how does it looks with this color, then if you figured out the needed color, then you can use it into the IfTrueAction options of the three measures. If you don1t try this way, it's extremely hard to get the proper colors.
Kaizenitsune
Posts: 33
Joined: December 9th, 2022, 3:25 am

Re: Music player infinite text flow

Post by Kaizenitsune »

I had understood that I should not delete the IfCondition / IfTrueAction and IfCondition2 / IfTrueAction2, sorry I had then misunderstood.

I have found the error regarding the colors, as you said the basic images were red which is why the color in the player was darker, I have colored the images back to white and now they have the desired color. Now I just need to change the base color so it doesn't look so bluish anymore. I would like this bluish color to become the BRED from the code.

Image 1 is the normal color
1.PNG
Image 2 is the color as soon as I click on it
2.PNG
I have already tried to change the color in the IfCondition/IfTrueAction but without success.

I have also given the variables now the desired color code and have given clearer designations to the COLOR. I just have to figure out what to make out of DarkBlue, MediumBlue, AlmostBlack, AlmostWhite.

Code: Select all

[Variables]
...
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
AlmostBlack=40,40,40,255
AlmostWhite=255,255,255
RED=211,40,56
GREY=117,140,148
BRED=123,0,44
...

Code: Select all

[MeasureHeartRaw]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Rating
IfCondition=((MeasureHeartRaw=0)&&(#Heart#=0))
IfTrueAction=[!SetOption MeterHeart ImageTint "#DarkBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition2=((MeasureHeartRaw=5)&&(#Heart#=0))
IfTrueAction2=[!SetOption MeterHeart ImageTint "#RED#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition3=((MeasureHeartRaw=0)&&(#Heart#=1))
IfTrueAction3=[!SetOption MeterHeart ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition4=((MeasureHeartRaw=5)&&(#Heart#=1))
IfTrueAction4=[!SetOption MeterHeart ImageTint "#GREY#"][!UpdateMeter "MeterHeart"][!Redraw]
DynamicVariables=1
You do not have the required permissions to view the files attached to this post.