How would you make it so the skin refreshes as soon as the Spotify song ends? Im using BMediaTaskbarWidget This is the code thats already in it:I thought I could do it by when the progress meter gets to a certain value it refreshes, but I dont know how to do so.
Code:
[Rainmeter]Update=1AccurateText=1MiddleMouseUpAction=[!Refresh]OnRefreshAction=[!CommandMeasure MeasureActionTimer "Execute 1"][!HideMeterGroup VolumeControl][Metadata]Name=BTunes Taskbar WidgetAuthor=Blapman007Information="Control your media, right from the taskbar."Version=1License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0[Variables];User Settings, these are for you :DSpotiGreen=29,185,84YoutubeRed=255,0,0SoundCloudOrange=242,111,35AlbumArtSize=45TextClipWidth=200TextClipHeight=20TextFontSize=10DetailsFontColor=0,0,0SongDetailPositionX=48SongDetailPositionY=8ProgressBarPositionX=48ProgressBarPositionY=33ProgressBarWidth=310ProgressBarThickness=5FirstButtonPosition=58ButtonSpacing=5RButtonHeight=6HoverVolumeBGOpacity=200VolumeLvFontSize=13VolumeBtnSize=30VolumeBtnPadding=10; Marquee settings, these aren't for you :(animationSpeed=32marqueeBeginWait=1500marqueeEndWait=1500;Dynamic Vars, neither are these :(marquee1=0volopac1=1ProgressBarCol=29,185,84;MEASURES;Get the player[MeasurePlayer]Measure=PluginPlugin=WebNowPlayingPlayerType=PLAYER;Set color of progress bar based on player name;Assume SpotifyIfMatch=Windows Media Session|SpotifyIfMatchAction=[!SetVariable ProgressBarCol #SpotiGreen#];YouTubeIfMatch2=YouTube|NetflixIfMatchAction2=[!SetVariable ProgressBarCol #YoutubeRed#];SoundCloudIfMatch3=SoundcloudIfMatchAction3=[!SetVariable ProgressBarCol #SoundCloudOrange#];Get the title[MeasureTitle]Measure=PluginPlugin=WebNowPlayingPlayerType=TITLEDynamicVariables=1OnChangeAction=[!SetVariable marquee1 0][!CommandMeasure MeasureActionTimer "Execute 1"];Get the artist[MeasureArtist]Measure=PluginPlugin=WebNowPlayingPlayerType=ARTISTDynamicVariables=1;Get the Duration[MeasureDuration]Measure=PluginPlugin=WebNowPlayingPlayerType=DURATIONOnChangeAction=[!SetVariable marquee1 0][!CommandMeasure MeasureActionTimer "Execute 1"]IfCondition=MeasureDuration < 1IfTrueAction=[!Hide]IfFalseAction=[!Show];Get the Progress[MeasureProgress]Measure=PluginPlugin=WebNowPlayingPlayerType=PROGRESS[MeasureState]Measure=PluginPlugin=WebNowPlayingPlayerType=STATESubstitute="0":"#@#Images\play-fill.png","1":"#@#Images\pause-fill.png","2":"#@#Images\play-fill.png","3":"#@#Images\play-fill.png"DynamicVariables=1[MeasureMarquee1Offset]Measure=CalcFormula=max(0,([MeterDetails:W] - [MeterDetailContainer:W]))DynamicVariables=1[MeasureActionTimer]Measure=PluginPlugin=ActionTimer; Marquee 1ActionList1=Repeat Move1,#animationSpeed#,[MeasureMarquee1Offset:] | Wait #marqueeEndWait# | Reset1 | Wait #marqueeBeginWait# | DoOver1Reset1=[!SetVariable marquee1 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter MeterDetails][!Redraw]Move1=[!SetVariable marquee1 "(#marquee1# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter MeterDetails][!Redraw]DoOver1=[!CommandMeasure MeasureActionTimer "Execute 1"]DynamicVariables=1[MeasureAlbumArt]Measure=PluginPlugin=WebNowPlayingPlayerType=Cover; The DefaultPath will be returned when no cover art has been found.DefaultPath=#@#Images\nocover.pngUpdateDivider = 5[MeasureVolume]Measure=PluginPlugin=WebNowPlayingPlayerType=Volume;METERS;Display Artist Name - Song NameS[MeterDetails]Meter=StringMeasureName=MeasureArtistMeasureName2=MeasureTitleAntiAlias=1FontColor=#DetailsFontColor#FontFace=Circular Std MediumFontSize=#TextFontSize#Text="%1 | %2"X=#marquee1#Y=2Container=MeterDetailContainerDynamicVariables=1[MeterProgress]Meter=BarMeasureName=MeasureProgressX=#ProgressBarPositionX#Y=#ProgressBarPositionY#W=#ProgressBarWidth#H=#ProgressBarThickness#BarColor=#ProgressBarCol#SolidColor=60,60,60,255BarOrientation=HorizontalDynamicVariables=1LeftMouseUpAction=[!CommandMeasure MeasureTitle "SetPosition $MouseX:%$"][!UpdateMeasure MeasureTitle][!Redraw][MeterDetailContainer]Meter=ShapeShape=Rectangle 0,-5,#TextClipWidth#,#TextClipHeight#Y=#SongDetailPositionY#X=#SongDetailPositionX#;[MeterContVis];Meter=Shape ;Shape=Rectangle 0,-5,#TextClipWidth#,#TextClipHeight#[MeterPrevious]Meter=ImageImageName=#@#Images\skip-back-fill.pngX=(#TextClipWidth# + #FirstButtonPosition#)Y=#ButtonHeight#LeftMouseUpAction=[!CommandMeasure MeasureTitle "Previous"][MeterPause]Meter=ImageMeasureName=MeasureStateImageName="#@#Images\pause-fill.png"X=#ButtonSpacing#Y=#ButtonHeight#LeftMouseUpAction=[!CommandMeasure MeasureTitle "PlayPause"][MeterNext]Meter=ImageImageName=#@#Images\skip-forward-fill.pngX=#ButtonSpacing#Y=#ButtonHeight#LeftMouseUpAction=[!CommandMeasure MeasureTitle "Next"][MeterAlbumArt]Meter=Imageh=#AlbumArtSize#w=#AlbumArtSize#MeasureName=MeasureAlbumArtPreserveAspectRatio=1[MeterVolumeBG]Meter=ShapeShape=Rectangle 0,0,(#TextClipWidth# + 1),#ProgressBarPositionY# | Fill Color 0,0,0,#volopac1# | StrokeWidth 0X=#SongDetailPositionX#Y=0DynamicVariables=1MouseActionCursorName="SIZE_WE"MouseOverAction=[!SetVariable volopac1 #HoverVolumeBGOpacity#][!ShowMeterGroup VolumeControl]MouseLeaveAction=[!SetVariable volopac1 1][!HideMeterGroup VolumeControl]LeftMouseUpAction=[!CommandMeasure MeasurePlayer "SetVolume $MouseX:%$"][MeterVolumeLv]Meter=StringMeasureName=MeasureVolumeAntiAlias=1FontColor=255,255,255FontFace=Circular Std MediumFontSize=#VolumeLvFontSize#StringAlign=CenterCenterText="%1"X=(#SongDetailPositionX#+(#TextClipWidth# / 2))Y=(#ProgressBarPositionY# / 2)Group=VolumeControl[MeterVolumeUp]Meter=ImageImageName=#@#Images\vpls.pngW=#VolumeBtnSize#H=#VolumeBtnSize#Group=VolumeControlX=(((#TextClipWidth# + #SongDetailPositionX#) - #VolumeBtnSize#) - #VolumeBtnPadding#)[MeterVolumeDn]Meter=ImageImageName=#@#Images\vmin.pngW=#VolumeBtnSize#H=#VolumeBtnSize#Group=VolumeControlX=(#SongDetailPositionX# + #VolumeBtnPadding#)
Statistics: Posted by tanuki_raccoon — Yesterday, 5:24 pm — Replies 3 — Views 47