Code: Select all
[Rainmeter]
Update=1
AccurateText=1
MiddleMouseUpAction=[!Refresh]
OnRefreshAction=[!CommandMeasure MeasureActionTimer "Execute 1"][!HideMeterGroup VolumeControl]
[Metadata]
Name=BTunes Taskbar Widget
Author=Blapman007
Information="Control your media, right from the taskbar."
Version=1
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[Variables]
;User Settings, these are for you :D
SpotiGreen=29,185,84
YoutubeRed=255,0,0
SoundCloudOrange=242,111,35
AlbumArtSize=45
TextClipWidth=200
TextClipHeight=20
TextFontSize=10
DetailsFontColor=0,0,0
SongDetailPositionX=48
SongDetailPositionY=8
ProgressBarPositionX=48
ProgressBarPositionY=33
ProgressBarWidth=310
ProgressBarThickness=5
FirstButtonPosition=58
ButtonSpacing=5R
ButtonHeight=6
HoverVolumeBGOpacity=200
VolumeLvFontSize=13
VolumeBtnSize=30
VolumeBtnPadding=10
; Marquee settings, these aren't for you :(
animationSpeed=32
marqueeBeginWait=1500
marqueeEndWait=1500
;Dynamic Vars, neither are these :(
marquee1=0
volopac1=1
ProgressBarCol=29,185,84
;MEASURES
;Get the player
[MeasurePlayer]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=PLAYER
;Set color of progress bar based on player name
;Assume Spotify
IfMatch=Windows Media Session|Spotify
IfMatchAction=[!SetVariable ProgressBarCol #SpotiGreen#]
;YouTube
IfMatch2=YouTube|Netflix
IfMatchAction2=[!SetVariable ProgressBarCol #YoutubeRed#]
;SoundCloud
IfMatch3=Soundcloud
IfMatchAction3=[!SetVariable ProgressBarCol #SoundCloudOrange#]
;Get the title
[MeasureTitle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=TITLE
DynamicVariables=1
OnChangeAction=[!SetVariable marquee1 0][!CommandMeasure MeasureActionTimer "Execute 1"]
;Get the artist
[MeasureArtist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=ARTIST
DynamicVariables=1
;Get the Duration
[MeasureDuration]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=DURATION
OnChangeAction=[!SetVariable marquee1 0][!CommandMeasure MeasureActionTimer "Execute 1"]
IfCondition=MeasureDuration < 1
IfTrueAction=[!Hide]
IfFalseAction=[!Show]
;Get the Progress
[MeasureProgress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=PROGRESS
[MeasureState]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=STATE
Substitute="0":"#@#Images\play-fill.png","1":"#@#Images\pause-fill.png","2":"#@#Images\play-fill.png","3":"#@#Images\play-fill.png"
DynamicVariables=1
[MeasureMarquee1Offset]
Measure=Calc
Formula=max(0,([MeterDetails:W] - [MeterDetailContainer: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 MeterDetails][!Redraw]
Move1=[!SetVariable marquee1 "(#marquee1# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter MeterDetails][!Redraw]
DoOver1=[!CommandMeasure MeasureActionTimer "Execute 1"]
DynamicVariables=1
[MeasureAlbumArt]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Cover
; The DefaultPath will be returned when no cover art has been found.
DefaultPath=#@#Images\nocover.png
UpdateDivider = 5
[MeasureVolume]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
;METERS
;Display Artist Name - Song NameS
[MeterDetails]
Meter=String
MeasureName=MeasureArtist
MeasureName2=MeasureTitle
AntiAlias=1
FontColor=#DetailsFontColor#
FontFace=Circular Std Medium
FontSize=#TextFontSize#
Text="%1 | %2"
X=#marquee1#
Y=2
Container=MeterDetailContainer
DynamicVariables=1
[MeterProgress]
Meter=Bar
MeasureName=MeasureProgress
X=#ProgressBarPositionX#
Y=#ProgressBarPositionY#
W=#ProgressBarWidth#
H=#ProgressBarThickness#
BarColor=#ProgressBarCol#
SolidColor=60,60,60,255
BarOrientation=Horizontal
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureTitle "SetPosition $MouseX:%$"][!UpdateMeasure MeasureTitle][!Redraw]
[MeterDetailContainer]
Meter=Shape
Shape=Rectangle 0,-5,#TextClipWidth#,#TextClipHeight#
Y=#SongDetailPositionY#
X=#SongDetailPositionX#
;[MeterContVis]
;Meter=Shape
;Shape=Rectangle 0,-5,#TextClipWidth#,#TextClipHeight#
[MeterPrevious]
Meter=Image
ImageName=#@#Images\skip-back-fill.png
X=(#TextClipWidth# + #FirstButtonPosition#)
Y=#ButtonHeight#
LeftMouseUpAction=[!CommandMeasure MeasureTitle "Previous"]
[MeterPause]
Meter=Image
MeasureName=MeasureState
ImageName="#@#Images\pause-fill.png"
X=#ButtonSpacing#
Y=#ButtonHeight#
LeftMouseUpAction=[!CommandMeasure MeasureTitle "PlayPause"]
[MeterNext]
Meter=Image
ImageName=#@#Images\skip-forward-fill.png
X=#ButtonSpacing#
Y=#ButtonHeight#
LeftMouseUpAction=[!CommandMeasure MeasureTitle "Next"]
[MeterAlbumArt]
Meter=Image
h=#AlbumArtSize#
w=#AlbumArtSize#
MeasureName=MeasureAlbumArt
PreserveAspectRatio=1
[MeterVolumeBG]
Meter=Shape
Shape=Rectangle 0,0,(#TextClipWidth# + 1),#ProgressBarPositionY# | Fill Color 0,0,0,#volopac1# | StrokeWidth 0
X=#SongDetailPositionX#
Y=0
DynamicVariables=1
MouseActionCursorName="SIZE_WE"
MouseOverAction=[!SetVariable volopac1 #HoverVolumeBGOpacity#][!ShowMeterGroup VolumeControl]
MouseLeaveAction=[!SetVariable volopac1 1][!HideMeterGroup VolumeControl]
LeftMouseUpAction=[!CommandMeasure MeasurePlayer "SetVolume $MouseX:%$"]
[MeterVolumeLv]
Meter=String
MeasureName=MeasureVolume
AntiAlias=1
FontColor=255,255,255
FontFace=Circular Std Medium
FontSize=#VolumeLvFontSize#
StringAlign=CenterCenter
Text="%1"
X=(#SongDetailPositionX#+(#TextClipWidth# / 2))
Y=(#ProgressBarPositionY# / 2)
Group=VolumeControl
[MeterVolumeUp]
Meter=Image
ImageName=#@#Images\vpls.png
W=#VolumeBtnSize#
H=#VolumeBtnSize#
Group=VolumeControl
X=(((#TextClipWidth# + #SongDetailPositionX#) - #VolumeBtnSize#) - #VolumeBtnPadding#)
[MeterVolumeDn]
Meter=Image
ImageName=#@#Images\vmin.png
W=#VolumeBtnSize#
H=#VolumeBtnSize#
Group=VolumeControl
X=(#SongDetailPositionX# + #VolumeBtnPadding#)