[Rainmeter]
Author=wasek,viken
Update=40

[Variables]
Player=AIMP

[style]
FontFace=Neuropol
FontSize=9
StringStyle=BOLD
FontColor=250,250,250,200
AntiAlias=1
StringEffect=SHADOW
FontEffectColor=0,0,0,100
ClipString=1

[style2]
FontSize=25
FontColor= 250, 250, 250,140
AntiAlias=1
BevelType=0
FontFace=Neuropol
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,100

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE
PlayerPath=
DisableLeadingZero=0
Substitute="":"N\A"
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter ErrorMessage][!RainmeterRedraw]
UpdateDivider=10

[mArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ARTIST
Substitute="":"N\A"

[mAlbum]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ALBUM
Substitute="":"N\A"

[mCover]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=COVER
;Substitute="":"Default.png"

[mPosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=POSITION

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=DURATION

[mProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=PROGRESS

[mVolume]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=VOLUME

[mStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE
Substitute="0":"Play.png","1":"Pause.png","2":"Play.png"

;[Cover]
Meter=IMAGE
MeasureName=mCover
X=180
Y=5
W=160
H=160
ImageAlpha=150

[Background]
Meter=IMAGE
SolidColor=0,0,0,100
X=15
Y=7
W=355
H=30

[Background2]
Meter=IMAGE
ImageName=AA1.Png
X=0
Y=0
W=385
H=40

[BarIMAGE]
Meter=IMAGE
IMAGENAME=back.PNG
X=22
Y=13r

[ProgressBar]
Meter=BAR
MeasureName=mProgress
X=22
Y=0r
W=175
H=4
BarColor=204,204,204,150
BarOrientation=HORIZONTAL

[Time]
Meter=STRING
MeasureName=mPosition
MeasureName2=mDuration
X=290
Y=20
W=140
H=15
StringAlign=Center
MeterStyle=style2
Text="%1 / %2"
FontSize=9

[Previous]
Meter=BUTTON
ButtonImage=Previous.png
X=20
Y=22
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Previous"]

[Play]
Meter=BUTTON
ButtonImage=[mStateButton]
X=20r
Y=0r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer PlayPause"]
DynamicVariables=1

[Next]
Meter=BUTTON
ButtonImage=Next.png
X=20r
Y=1r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Next"]

[Stop]
Meter=BUTTON
ButtonImage=Stop.png
X=20r
Y=-1r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Stop"]

[Volume]
Meter=IMAGE
ImageName=Volume.png
X=25r
Y=0r

[VolumeText]
Meter=STRING
MeasureName=mVolume
X=11r
Y=3r
W=45
H=16
MeterStyle=style
FontSize=6
Text="%1%"

[VolumeUp]
Meter=BUTTON
ButtonImage=VolumeUp.png
X=25r
Y=-5r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetVolume +10"]

[VolumeDown]
Meter=BUTTON
ButtonImage=VolumeDown.png
X=0r
Y=8r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetVolume -10"]

[OpenPlayer]
Meter=BUTTON
ButtonImage=Open.png
X=20r
Y=22
;ToolTipText="Open Media Player"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer OpenPlayer"]

[ClosePlayer]
Meter=BUTTON
ButtonImage=Close.png
X=20r
Y=22
;ToolTipText="Close Media Player"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer ClosePlayer"]

[Progress0]
Meter=IMAGE
SolidColor=0,0,0,1
X=22
Y=13
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 0"

[Progress1]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 10"

[Progress2]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 20"

[Progress3]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 30"

[Progress4]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 40"

[Progress5]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 50"

[Progress6]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 60"

[Progress7]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 70"

[Progress8]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 80"

[Progress9]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=18
H=4
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 90"
