It is currently December 5th, 2021, 2:32 am

I have: title, artist, album and need scrolling... please

Help with creating, editing & fixing problems with skins
catalanm
Posts: 2
Joined: May 27th, 2019, 2:53 pm

I have: title, artist, album and need scrolling... please

Post by catalanm »

Hello

I'm using this skin, which I modified so that it hardly consumed resources. Its function is very simple; shows the title of a song, the artist who sings it, and the name of the album.

I would like to add scrolling to the title, which is often very long and trunked.

In advance I thank you for any help,

p.s.: I'll leave you the code.

Code: Select all

[Rainmeter]
Update=10
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1
OnRefreshAction=[!KeepOnScreen #KeepOnScreen#]

[Metadata]
Name=CoveR Left
Author=NikolaRabra (rabra.deviantart.com)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1 (20140909)

[Variables]
@includeVars=#@#Variables.inc
ProgressAlpha=1
Step=-1
Width=80

; Styles ------------------------------------------------------------------------------------------

[StringStyleLarge]
FontFace=Roboto Light
FontColor=#Color#,(255*(#Alpha#))
;FontSize=16
FontSize=26
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,(255*(#Alpha#))
AntiAlias=1
ClipString=1
;SolidColor=0,255,255,100

[StringStyleSmall]
FontFace=Roboto Light
FontColor=#Color#,(255*(#Alpha#))
;FontSize=11
FontSize=21
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,(255*(#Alpha#))
AntiAlias=1
ClipString=1
;SolidColor=255,0,255,100

; Measures ----------------------------------------------------------------------------------------

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=CAD
PlayerType=ARTIST

[MeasureAlbum]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=ALBUM

[MeasureTitle]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=TITLE

;[MeasureCover]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=COVER
;Substitute="":"#@#Images\#NoCover#"

;[MeasureState]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=STATE
;Substitute="0":"Play.png","1":"Pause.png","2":"Play.png"

;[MeasureStatus]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=STATUS
;IfEqualValue=0
;IfEqualAction=[!ShowMeterGroup Clock][!Redraw]
;IfAboveValue=0
;IfAboveAction=[!HideMeterGroup Clock][!Redraw]
;Disabled=#ShowClock#


;[MeasureProgress]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=PROGRESS
;AverageSize=40

;[MeasurePosition]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=POSITION

;[MeasureDuration]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=DURATION

;[MeasureRepeat]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=REPEAT
;IfEqualValue=0
;IfEqualAction=[!SetOption Repeat ImageAlpha 128][!UpdateMeasure MeasureRepeat][!UpdateMeter Repeat][!Redraw]
;IfAboveValue=0
;IfAboveAction=[!SetOption Repeat ImageAlpha 255][!UpdateMeasure MeasureRepeat][!UpdateMeter Repeat][!Redraw]

;[MeasureShuffle]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=SHUFFLE
;IfEqualValue=0
;IfEqualAction=[!SetOption Shuffle ImageAlpha 128][!UpdateMeasure MeasureShuffle][!UpdateMeter Shuffle][!Redraw]
;IfAboveValue=0
;IfAboveAction=[!SetOption Shuffle ImageAlpha 255][!UpdateMeasure MeasureShuffle][!UpdateMeter Shuffle][!Redraw]

; Info Text ---------------------------------------------------------------------------------------

[Title]
Meter=STRING
MeasureName=MeasureTitle
MeterStyle=StringStyleLarge
StringAlign=LeftBottom
W=#TextWidth#
H=77
;X=170
X=98
;Y=77
Y=67
Text=%1
Group=Info
Hidden=#HideInfo#
UpdateDivider=50

[ArtistAlbum]
Meter=STRING
MeasureName=MeasureArtist
MeasureName2=MeasureAlbum
MeterStyle=StringStyleSmall
StringAlign=LeftTop
Text=%1#CRLF#%2
W=#TextWidth#
H=77
X=r
Y=r
Group=Info
Hidden=#HideInfo#
UpdateDivider=50

:confused:
User avatar
balala
Rainmeter Sage
Posts: 13516
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: I have: title, artist, album and need scrolling... please

Post by balala »

Here is a first solution. Definitely need to be improved, but first please take a look and let me know if it is what you want.
I added a new variable, naming it Sgn. It is either +1, or -1 and is used in scrolling the title. For now, only the title is scrolling, if everything is alright, will add similar features for the other strings as well. We have to check the width of the skin itself and the title, in order to can decide when it has to be scrolling and when not (if the title is short enough, doesn't worth to scroll it). If the skin is wider then the currently shown title, it isn't scrolled, otherwise it is. All this are done by the newly added [MeasureScrollTitle] measure.
Note a few other things:
  • I commented out the completely wrong FontColor=#MeasureName=#)) option of the [StringStyleLarge] section. Probably you had there a color code, but it's wrong now as it is. Check it what color have you wanted to use there.
  • I set a width for the skin, adding a SkinWidth option into the [Rainmeter] section and a similarly named variable. Set the desired value for this variable.
  • I changed the X option of the [Title] meter and in paralel, I had to add a bang to update the meter whenever the value of the [MeasureSrollTitle] measure is changing (done through the OnChangeAction option of this measure). Probably an even better solution is to remove both, the UpdateDivider option of the meter and the OnChangeAction option of the measure. A DynamicVariables=1 option also had to be added to the meter.
  • The lowest possible value of the Update ([Rainmeter] section) is 16 (second paragraph here). I also rewrote it.
  • I commented out the Width variable as well, because it is not used nowhere in the code. If the code has some not posted parts and the variable is used there, add it back.
Please try out this code and let me know if it does look like what you want to achieve. If it does, I'll continue improving it.

Code: Select all

[Rainmeter]
Update=16
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1
OnRefreshAction=[!KeepOnScreen #KeepOnScreen#]
SkinWidth=#SkinWidth#

[Metadata]
Name=CoveR Left
Author=NikolaRabra (rabra.deviantart.com)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1 (20140909)

[Variables]
@includeVars=#@#Variables.inc
ProgressAlpha=1
Step=-1
TextWidth=400
SkinWidth=300
;Width=80
Sgn=1
X=98

; Styles ------------------------------------------------------------------------------------------

[StringStyleLarge]
FontFace=Roboto Light
;FontColor=#MeasureName=#))
;FontSize=16
FontSize=26
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,(255*(#Alpha#))
AntiAlias=1
ClipString=1
;SolidColor=0,255,255,100

[StringStyleSmall]
FontFace=Roboto Light
FontColor=#Color#,(255*(#Alpha#))
;FontSize=11
FontSize=21
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,(255*(#Alpha#))
AntiAlias=1
ClipString=1
;SolidColor=255,0,255,100

; Measures ----------------------------------------------------------------------------------------

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=CAD
PlayerType=ARTIST

[MeasureAlbum]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=ALBUM

[MeasureTitle]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=TITLE

;[MeasureCover]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=COVER
;Substitute="":"#@#Images\#NoCover#"

;[MeasureState]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=STATE
;Substitute="0":"Play.png","1":"Pause.png","2":"Play.png"

;[MeasureStatus]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=STATUS
;IfEqualValue=0
;IfEqualAction=[!ShowMeterGroup Clock][!Redraw]
;IfAboveValue=0
;IfAboveAction=[!HideMeterGroup Clock][!Redraw]
;Disabled=#ShowClock#

;[MeasureProgress]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=PROGRESS
;AverageSize=40

;[MeasurePosition]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=POSITION

;[MeasureDuration]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=DURATION

;[MeasureRepeat]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=REPEAT
;IfEqualValue=0
;IfEqualAction=[!SetOption Repeat ImageAlpha 128][!UpdateMeasure MeasureRepeat][!UpdateMeter Repeat][!Redraw]
;IfAboveValue=0
;IfAboveAction=[!SetOption Repeat ImageAlpha 255][!UpdateMeasure MeasureRepeat][!UpdateMeter Repeat][!Redraw]

;[MeasureShuffle]
;Measure=Plugin
;Plugin=NowPlaying
;PlayerName=[MeasureArtist]
;PlayerType=SHUFFLE
;IfEqualValue=0
;IfEqualAction=[!SetOption Shuffle ImageAlpha 128][!UpdateMeasure MeasureShuffle][!UpdateMeter Shuffle][!Redraw]
;IfAboveValue=0
;IfAboveAction=[!SetOption Shuffle ImageAlpha 255][!UpdateMeasure MeasureShuffle][!UpdateMeter Shuffle][!Redraw]

[MeasureSrollTitle]
Measure=Calc
Formula=( MeasureSrollTitle + #Sgn# )
IfCondition=(#CURRENTSECTION#>=([MeterTitle:W]-#CURRENTCONFIGWIDTH#+#X#+20))
IfTrueAction=[!SetVariable Sgn "-1"][!UpdateMeasure "#CURRENTSECTION#"]
IfCondition2=(#CURRENTSECTION#<=0)
IfTrueAction2=[!SetVariable Sgn "1"][!UpdateMeasure "#CURRENTSECTION#"]
OnChangeAction=[!UpdateMeter "Title"][!Redraw]
Disabled=(#CURRENTCONFIGWIDTH#>[Title:W])
DynamicVariables=1

; Info Text ---------------------------------------------------------------------------------------

[Title]
Meter=STRING
MeasureName=MeasureTitle
MeterStyle=StringStyleLarge
StringAlign=LeftBottom
W=#TextWidth#
H=77
;X=170
X=(#X#-[MeasureSrollTitle])
;Y=77
Y=67
Text=%1
Group=Info
Hidden=#HideInfo#
UpdateDivider=50
DynamicVariables=1

[MeterTitle]
Meter=STRING
MeasureName=MeasureTitle
StringAlign=LeftBottom
X=#X#
Y=67
FontFace=Roboto Light
FontColor=0,0,0,1
FontSize=26
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,1
AntiAlias=1
ClipString=1
Text=%1
Group=Info
UpdateDivider=50

[Artist]
Meter=STRING
MeasureName=MeasureArtist
MeterStyle=StringStyleSmall
StringAlign=LeftTop
Text=%1#CRLF#%2
W=#TextWidth#
H=38
X=#X#
Y=r
Group=Info
Hidden=#HideInfo#
UpdateDivider=50

[Album]
Meter=STRING
MeasureName=MeasureAlbum
MeterStyle=StringStyleSmall
StringAlign=LeftTop
Text=%1#CRLF#%2
W=#TextWidth#
H=38
X=r
Y=R
Group=Info
Hidden=#HideInfo#
UpdateDivider=50
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: I have: title, artist, album and need scrolling... please

Post by eclectic-tech »

Balala beat me to a possible answer (it needs help to complete as he mentioned)

Here is a possible solution based on a post in Tips & Tricks by raiguard I modified the code slightly to accommodate your meters and style, added missing variables (those will be in the included file), removed unused measures, and corrected positioning for Container.

To change the skin width, change the TEXTWIDTH variable.

npscroll.gif

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1
OnRefreshAction=[!SetVariable Marquee1 0][!SetVariable Marquee2 0][!SetVariable Marquee3 0][!CommandMeasure MeasureActionTimer "Stop 1"][!CommandMeasure MeasureActionTimer "Stop 2"][!CommandMeasure MeasureActionTimer "Stop 3"][!CommandMeasure MeasureActionTimer "Execute 1"][!CommandMeasure MeasureActionTimer "Execute 2"][!CommandMeasure MeasureActionTimer "Execute 3"][!KeepOnScreen #KeepOnScreen#]

[Metadata]
Name=CoveR Left
Author=NikolaRabra (rabra.deviantart.com)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1 (20140909)

[Variables]
@includeVars=#@#Variables.inc
ProgressAlpha=1
Step=-1

; Added to test (Should be in your included variables.inc file)
TextWidth=250
Color=255,255,255
Alpha=200
HideInfo=0
KeepOnScreen=0

; Marquee settings
animationSpeed=32
marqueeBeginWait=2000
marqueeEndWait=2000
; Dynamic variables - do not change
marquee1=0
marquee2=0
marquee3=0

; Styles ------------------------------------------------------------------------------------------

[StringStyleLarge]
FontFace=Roboto Light
FontColor=#Color#,(255*(#Alpha#))
;FontSize=16
FontSize=26
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,(255*(#Alpha#))
AntiAlias=1
Container=MeterTextContainer
DynamicVariables=1

[StringStyleSmall]
FontFace=Roboto Light
FontColor=#Color#,(255*(#Alpha#))
;FontSize=11
FontSize=21
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,(255*(#Alpha#))
AntiAlias=1
Container=MeterTextContainer
DynamicVariables=1

; Measures ----------------------------------------------------------------------------------------

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=CAD
PlayerType=ARTIST
OnChangeAction=[!Refresh "#CurrentConfig#"]

[MeasureAlbum]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=ALBUM

[MeasureTitle]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=TITLE


; Marquee Measures

[MeasureMarquee1Offset]
Measure=Calc
Formula=max(0,([Title:W] - [MeterTextContainer:W]))
DynamicVariables=1

[MeasureMarquee2Offset]
Measure=Calc
Formula=max(0,([Artist:W] - [MeterTextContainer:W]))
DynamicVariables=1

[MeasureMarquee3Offset]
Measure=Calc
Formula=max(0,([Album:W] - [MeterTextContainer:W]))
DynamicVariables=1

[MeasureActionTimer]
Measure=Plugin
Plugin=ActionTimer

; Marquee 1
ActionList1=Repeat Move1,#animationSpeed#,[MeasureMarquee1Offset:] | Wait #marqueeEndWait# | Reset1 | Wait #marqueeBeginWait# | DoOver1
Reset1=[!SetVariable marquee1 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter Title][!Redraw]
Move1=[!SetVariable marquee1 "(#marquee1# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Title][!Redraw]
DoOver1=[!CommandMeasure MeasureActionTimer "Execute 1"]


; Marquee 2
ActionList2=Repeat Move2,#animationSpeed#,[MeasureMarquee2Offset:] | Wait #marqueeEndWait# | Reset2 | Wait #marqueeBeginWait# | DoOver2
Reset2=[!SetVariable marquee2 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter Artist][!Redraw]
Move2=[!SetVariable marquee2 "(#marquee2# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Artist][!Redraw]
DoOver2=[!CommandMeasure MeasureActionTimer "Execute 2"]


; Marquee 3
ActionList3=Repeat Move3,#animationSpeed#,[MeasureMarquee3Offset:] | Wait #marqueeEndWait# | Reset3 | Wait #marqueeBeginWait# | DoOver3
Reset3=[!SetVariable marquee3 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter Album][!Redraw]
Move3=[!SetVariable marquee3 "(#marquee3# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Album][!Redraw]
DoOver3=[!CommandMeasure MeasureActionTimer "Execute 3"]
DynamicVariables=1

; Container to control scrolling based on TextWidth
[MeterTextContainer]
Meter=Image
SolidColor=255,255,255,255
X=1
Y=1
W=#TextWidth#
H=155

; Info Text ---------------------------------------------------------------------------------------

[Title]
Meter=STRING
MeasureName=MeasureTitle
MeterStyle=StringStyleLarge
StringAlign=LeftBottom
X=#marquee1#
Y=44
Text=%1
Group=Info
Hidden=#HideInfo#

[Artist]
Meter=STRING
MeasureName=MeasureArtist
MeterStyle=StringStyleSmall
StringAlign=LeftTop
Text=%1
X=#marquee2#
Y=36
Group=Info
Hidden=#HideInfo#

[Album]
Meter=STRING
MeasureName=MeasureAlbum
MeterStyle=StringStyleSmall
StringAlign=LeftTop
Text=%1
X=#marquee3#
Y=68
Group=Info
Hidden=#HideInfo#
Let us know if you have any questions regarding these suggestions. :welcome:
You do not have the required permissions to view the files attached to this post.
catalanm
Posts: 2
Joined: May 27th, 2019, 2:53 pm

Re: I have: title, artist, album and need scrolling... please

Post by catalanm »

eclectic-tech,

Thank you very much, it was all perfect, the only change I added was, as you said, to leave "TextWidth 400".

Thankful, get a hug from Chile and have an excellent weekend,

:welcome:
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: I have: title, artist, album and need scrolling... please

Post by eclectic-tech »

Happy to help ... (I'll add my thanks to raiguard :great: )
answerjen
Posts: 3
Joined: February 3rd, 2020, 5:49 pm

Re: I have: title, artist, album and need scrolling... please

Post by answerjen »

eclectic-tech wrote: July 19th, 2019, 4:19 pm Happy to help ... (I'll add my thanks to raiguard :great: )
Hello, could you make any further changes to make the scrolling style to be Seamless loop,just look like iphone music player :)
User avatar
balala
Rainmeter Sage
Posts: 13516
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: I have: title, artist, album and need scrolling... please

Post by balala »

answerjen wrote: February 3rd, 2020, 6:11 pm Hello, could you make any further changes to make the scrolling style to be Seamless loop,just look like iphone music player :)
I have no idea how the iPhone Music Player does look. Could you please post an animated GIF on what would you like?
answerjen
Posts: 3
Joined: February 3rd, 2020, 5:49 pm

Re: I have: title, artist, album and need scrolling... please

Post by answerjen »

balala wrote: February 3rd, 2020, 6:59 pm I have no idea how the iPhone Music Player does look. Could you please post an animated GIF on what would you like?

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1
OnRefreshAction=[!SetVariable Marquee1 0][!SetVariable Marquee2 0][!SetVariable Marquee3 0][!SetVariable Marquee4 0][!CommandMeasure MeasureActionTimer "Stop 1"][!CommandMeasure MeasureActionTimer "Stop 2"][!CommandMeasure MeasureActionTimer "Stop 3"][!CommandMeasure MeasureActionTimer "Stop 4"][!CommandMeasure MeasureActionTimer "Execute 1"][!CommandMeasure MeasureActionTimer "Execute 2"][!CommandMeasure MeasureActionTimer "Execute 3"][!CommandMeasure MeasureActionTimer "Execute 4"][!KeepOnScreen #KeepOnScreen#]

[Metadata]
Name=CoveR Left
Author=NikolaRabra (rabra.deviantart.com)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1 (20140909)

[Variables]
@includeVars=#@#Variables.inc
ProgressAlpha=1
Step=-1
NoTitleNameText=N/A
NoArtistNameText=N/A
NoAlbumNameText=N/A

; Added to test (Should be in your included variables.inc file)
TextWidth=300
Color=255,255,255,155
Alpha=300
HideInfo=0
KeepOnScreen=0

; Marquee settings
animationSpeed=48
marqueeBeginWait=3000
marqueeEndWait=3000
; Dynamic variables - do not change
marquee1=0
marquee2=0
marquee3=0
marquee4=0

; Styles ------------------------------------------------------------------------------------------

[StringStyleLarge]
FontFace=Segoe UI Light
FontColor=#Color#,(255*(#Alpha#))
;FontSize=19
FontSize=19
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,(255*(#Alpha#))
AntiAlias=1
Container=MeterTextContainer
DynamicVariables=1


; Measures ----------------------------------------------------------------------------------------

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
PlayerType=ARTIST
Substitute="":"#NoArtistNameText#"
UpdateDivider=100
OnChangeAction=[!Refresh "#CurrentConfig#"]

[MeasureAlbum]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=ALBUM
Substitute="":"#NoAlbumNameText#"
UpdateDivider=100

[MeasureTitle]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=TITLE
Substitute="":"#NoTitleNameText#"
UpdateDivider=100

[MeasureYear]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasureArtist]
PlayerType=YEAR


; Marquee Measures

[MeasureMarquee1Offset]
Measure=Calc
Formula=max(0,([Title:W] - [MeterTextContainer:W]))
DynamicVariables=1

[MeasureMarquee2Offset]
Measure=Calc
Formula=max(0,([Artist:W] - [MeterTextContainer:W]))
DynamicVariables=1

[MeasureMarquee3Offset]
Measure=Calc
Formula=max(0,([Album:W] - [MeterTextContainer:W]))
DynamicVariables=1

[MeasureMarquee4Offset]
Measure=Calc
Formula=max(0,([Year:W] - [MeterTextContainer:W]))
DynamicVariables=1

[MeasureActionTimer]
Measure=Plugin
Plugin=ActionTimer

; Marquee 1
ActionList1=Repeat Move1,#animationSpeed#,[MeasureMarquee1Offset:] | Wait #marqueeEndWait# | Reset1 | Wait #marqueeBeginWait# | DoOver1
Reset1=[!SetVariable marquee1 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter Title][!Redraw]
Move1=[!SetVariable marquee1 "(#marquee1# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Title][!Redraw]
DoOver1=[!CommandMeasure MeasureActionTimer "Execute 1"]


; Marquee 2
ActionList2=Repeat Move2,#animationSpeed#,[MeasureMarquee2Offset:] | Wait #marqueeEndWait# | Reset2 | Wait #marqueeBeginWait# | DoOver2
Reset2=[!SetVariable marquee2 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter Artist][!Redraw]
Move2=[!SetVariable marquee2 "(#marquee2# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Artist][!Redraw]
DoOver2=[!CommandMeasure MeasureActionTimer "Execute 2"]

; Marquee 3
ActionList3=Repeat Move3,#animationSpeed#,[MeasureMarquee3Offset:] | Wait #marqueeEndWait# | Reset3 | Wait #marqueeBeginWait# | DoOver3
Reset3=[!SetVariable marquee3 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter Album][!Redraw]
Move3=[!SetVariable marquee3 "(#marquee3# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Album][!Redraw]
DoOver3=[!CommandMeasure MeasureActionTimer "Execute 3"]


; Marquee 4
ActionList4=Repeat Move4,#animationSpeed#,[MeasureMarquee4Offset:] | Wait #marqueeEndWait# | Reset4 | Wait #marqueeBeginWait# | DoOver4
Reset4=[!SetVariable marquee4 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter Year][!Redraw]
Move3=[!SetVariable marquee3 "(#marquee3# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter Year][!Redraw]
DoOver4=[!CommandMeasure MeasureActionTimer "Execute 4"]
DynamicVariables=1

; Container to control scrolling based on TextWidth
[MeterTextContainer]
Meter=Image
SolidColor=255,255,255,155
X=1
Y=1
W=#TextWidth#
H=155

; Info Text ---------------------------------------------------------------------------------------

[Title]
Meter=STRING
MeasureName=MeasureTitle
MeterStyle=StringStyleLarge
StringAlign=LeftBottom
X=#marquee1#
Y=38
Text=%1
Group=Info
Hidden=#HideInfo#
StringStyle=bold

[Artist]
Meter=STRING
MeasureName=MeasureArtist
MeterStyle=StringStyleLarge
StringAlign=LeftTop
Text=%1
X=#marquee2#
Y=36
Group=Info
Hidden=#HideInfo#
StringStyle=bold

[Album]
Meter=STRING
MeasureName=MeasureAlbum
MeterStyle=StringStyleLarge
StringAlign=LeftTop
Text=%1
X=#marquee3#
Y=72
Group=Info
Hidden=#HideInfo#
StringStyle=bold

[Year]
Meter=STRING
MeasureName=MeasureYear
MeterStyle=StringStyleLarge
StringAlign=LeftTop
Text=%1
X=#marquee4#
Y=106
Group=Info
Hidden=#HideInfo#
StringStyle=bold
2058fe41f8f702286f354963375831c0.mp4
You do not have the required permissions to view the files attached to this post.
Last edited by jsmorley on February 3rd, 2020, 9:41 pm, edited 1 time in total.
Reason: Please use <code> tags. They are the </> button.
answerjen
Posts: 3
Joined: February 3rd, 2020, 5:49 pm

Re: I have: title, artist, album and need scrolling... please

Post by answerjen »

balala wrote: February 3rd, 2020, 6:59 pm I have no idea how the iPhone Music Player does look. Could you please post an animated GIF on what would you like?
[Youtube]https://youtu.be/PfFZtH6LrwY[/Youtube]

hi,have you seem the video file,Is it possible to make the loop scroll effect look the same as in the video? :)
User avatar
balala
Rainmeter Sage
Posts: 13516
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: I have: title, artist, album and need scrolling... please

Post by balala »

answerjen wrote: February 5th, 2020, 4:43 am hi,have you seem the video file,Is it possible to make the loop scroll effect look the same as in the video? :)
Yep, I saw both, but unfortunately had no time yet. But I hope I will.