That plugin helps. Thank you. The code below is modified slightly: update cycle raised (buttons felt too laggy, and 300 is also the speed I like for Lua), colors changed to fit my skin (white and blue: 49, 188, 251), and Lua code sitting there waiting to be useful.smurfier wrote:You need to install this plugin in foobar. Also, the playertype to set under [NowPlaying] is foobar2000.
Is the button supposed to change when I click on it? The pause/skip buttons change when I mouse over/click. In my modified version of Uroloki's, I turned that half-circle button into two images, a blue and a white, the white being the highlighted one. This also solved the problem of not letting me move it over to the right all the way.
I have Lua "kind of" working. I don't know how to properly combine the artist and track into one string for Lua to roll.
Code: Select all
[Rainmeter]
Author=Kriogen, modified by Uruloki Burning
Update=300
[Metadata]
Name=
Description=
Instructions=
Version=
License=
[Variables]
; ColorActive
ColorA=255, 255, 255
; ColorPassive
ColorP=49, 188, 251
FontFace=Slider
;MEASURES_________________________________________
;winamp__________________________________________________________________
[NowPlaying]
Measure=Plugin
Plugin=Plugins\NowPlaying.dll
PlayerName=foobar2000
PlayerType=Title
[Artist]
Measure=Plugin
Plugin=Plugins\NowPlaying.dll
PlayerName=[NowPlaying]
PlayerType=Artist
[Progress]
Measure=Plugin
Plugin=Plugins\NowPlaying.dll
PlayerName=[NowPlaying]
PlayerType=Progress
[State]
Measure=Plugin
Plugin=Plugins\NowPlaying.dll
PlayerName=[NowPlaying]
PlayerType=State
Substitute="0":"4","1":";","2":"4"
[MeasureProgress1]
Measure=Calc
Formula=Progress
MinValue=30
MaxValue=100
[MeasureProgress2]
Measure=Calc
Formula=Progress
MinValue=25
MaxValue=100
[MeasureRing]
Measure=Calc
Formula=Progress<25 ? Progress : 25
MaxValue=100
[MeasureRing1]
Measure=Calc
Formula=(Progress-30)/7000*15
[MeasureRing2]
Measure=Calc
Formula=0.25
[MeasureRing3]
Measure=Calc
Formula=0.50
[MeasureRing4]
Measure=Calc
Formula=0.15
;METERS_________________________________________
[MeterBackGround]
Meter=IMAGE
X=0
Y=0
W=318
H=120
SolidColor=10,10,10, 1
[MeterLine]
Meter=IMAGE
X=0
Y=61
W=279
H=2
SolidColor=#ColorP#, 100
[MeterLine2]
Meter=IMAGE
X=20
Y=56
W=3
H=2
SolidColor=#ColorP#, 100
[MeterLine3]
Meter=IMAGE
X=25
Y=53
W=2
H=5
SolidColor=#ColorP#, 100
[MeterLine4]
Meter=IMAGE
X=27
Y=56
W=46
H=2
SolidColor=#ColorP#, 100
[MeterLine6]
Meter=IMAGE
X=4
Y=63
W=275
H=3
SolidColor=#ColorP#, 100
;iTunesInfo_______
[Lua]
Measure=Script
ScriptFile=#SKINSPATH#Mass Effect 2\Marquee.lua
MeasureName=NowPlaying
;MeasureName2=Artist
Width=25
[MeterTrack]
Meter=STRING
MeasureName=Lua
MeasureName2=Artist
Text="%1 - %2"
X=75
Y=46
W=205
H=13
FontColor=#ColorA#
StringStyle=Bold
FontSize=9
StringAlign=Left
FontFace=#FontFace#
ToolTipText=%1
AntiAlias=1
ClipString=1
;RING BACK
[MeterRoundline]
Meter=ROUNDLINE
MeasureName=MeasureRing2
X=318
Y=65
LineWidth=5.0
LineLength=40
LineStart=34
StartAngle=300.00
RotationAngle=-6.28
AntiAlias=1
LineColor=#ColorP#, 100
Solid=1
;RING BACK 2
[MeterRoundline2]
Meter=ROUNDLINE
MeasureName=MeasureRing3
X=318
Y=65
LineWidth=5.0
LineLength=30
LineStart=22
StartAngle=300.00
RotationAngle=-6.28
AntiAlias=1
LineColor=#ColorP#, 50
Solid=1
;RING BACK 3
[MeterRoundline3]
Meter=ROUNDLINE
MeasureName=MeasureRing4
X=318
Y=65
LineWidth=5.0
LineLength=40
LineStart=34
StartAngle=9.20
RotationAngle=-6.28
AntiAlias=1
LineColor=#ColorP#, 100
Solid=1
[MeterProgressRing1]
Meter=ROUNDLINE
MeasureName=MeasureRing
X=318
Y=65
LineWidth=3.0
LineLength=38
LineStart=34
StartAngle=300.00
RotationAngle=-6.28
AntiAlias=1
LineColor=#ColorA#
Solid=1
[MeterProgressRing2]
Meter=ROUNDLINE
MeasureName=MeasureRing1
X=318
Y=65
LineWidth=5.0
LineLength=38
LineStart=34
StartAngle=9.20
RotationAngle=-6.28
AntiAlias=1
LineColor=#ColorA#
Solid=1
[MeterProgressBar]
MeasureName=MeasureProgress2
Meter=BAR
X=4
Y=63
W=277
H=3
BarOrientation=HORIZONTAL
BarColor=#ColorA#
Flip=1
;Buttons______________________________________
[Buttons]
X=R
Y=r
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# FontColor "#ColorA#"][!Redraw]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# FontColor "#ColorP#, 100"][!Redraw]
FontColor=#ColorP#, 100
StringStyle=BOLD
FontSize=15
StringAlign=LEFT
FontFace=Webdings
AntiAlias=1
[MeterPrev]
Meter=STRING
MeterStyle=Buttons
X=195
Y=68
Text="7"
LeftMouseUpAction=!CommandMeasure "NowPlaying" "Previous"
[MeterPlayPause]
Meter=STRING
MeterStyle=Buttons
MeasureName=State
LeftMouseUpAction=!CommandMeasure "NowPlaying" "PlayPause"
[MeterNext]
Meter=STRING
MeterStyle=Buttons
Text="8"
LeftMouseUpAction=!CommandMeasure "NowPlaying" "Next"
;Show Winamp Button______________________________________
[MeterROUNDLINEp]
Meter=ROUNDLINE
MeasureName=MeasureRing3
X=303
Y=51
W=30
H=30
LineLength=15
LineColor=#ColorP#,100
AntiAlias=1
StartAngle=4.7124
RotationAngle=-6.2832
solid=1
LeftMouseUpAction=!CommandMeasure "NowPlaying" "OpenPlayer"
MouseOverAction=!Execute [!SetOption #CURRENTSECTION# LineColor #ColorA#,128][!Redraw]
MouseLeaveAction=!Execute [!SetOption #CURRENTSECTION# LineColor #ColorP#,100][!Redraw]