[Rainmeter]
Update=1000
Autor=Wasek

[Variables]
Player=AIMP
BarColor=0,0,0,200

[style]
FontFace=Arial
FontSize=8
StringStyle=BOLD
FontColor=250,250,250,200
AntiAlias=1
StringEffect=SHADOW
FontEffectColor=0,0,0,100

[Background]
Meter=Image
X=0
Y=0
W=620
H=20
SolidColor=128,128,128,255
SolidColor2=128,128,128,20
GradientAngle=90

[Image]
Meter=Image
X=60
Y=3
W=50
H=16
SolidColor=#BarColor#

[Player]
Meter=STRING
MeasureName=mPlayer
X=65
Y=5
MeterStyle=style
Text=AIMP-3

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE
PlayerPath=
DisableLeadingZero=0
Substitute="":"N\A"
; Return value is 1 on error
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter ErrorMessage][!RainmeterRedraw]

[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"

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

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

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

----------------------------

;[Image2]
;Meter=Image
;X=178
;Y=11
;W=110
;H=7
;SolidColor=#BarColor#

[MeasureProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Progress

[ProgressBar]
Meter=BAR
MeasureName=MeasureProgress
BarImage="1.png"
BarOrientation=HORIZONTAL
X=180
Y=12

[ProgressBitmap]
Meter=BITMAP
MeasureName=MeasureProgress
BitmapImage="Bitmap"
BitmapFrames=98
BitmapZeroFrame=1
X=r
Y=r

[Image3]
Meter=Image
X=300
Y=3
W=310
H=15
SolidColor=#BarColor#

[Time]
Meter=STRING
MeasureName=mPosition
MeasureName2=mDuration
X=310
Y=4
W=90
H=16
MeterStyle=style
Text="%1 / %2"

[Artist-Track]
Meter=STRING
MeasureName=mArtist
MeasureName2=mPlayer
X=500
Y=4
W=200
H=14
MeterStyle=style
Text="%1 - %2"
StringAlign=Center
ClipString=1

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

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

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

[OpenPlayer]
Meter=BUTTON
ButtonImage=Open.png
X=5
Y=3
ToolTipText="Open Media Player"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer OpenPlayer"]

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

[Openfolder]
Meter=BUTTON
ButtonImage=op.fol.png
X=14r
Y=1
ToolTipText="Open Media folder"
LeftMouseUpAction=!Execute ["D:\Музыка\"]

;[Image4]
;Meter=Image
;X=178
;Y=2
;W=110
;H=7
;SolidColor=#BarColor#

[MeasureVolume]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Volume

[VolumeBar]
Meter=BAR
MeasureName=MeasureVolume
BarImage="1.png"
BarOrientation=HORIZONTAL
X=180
Y=3

[VolumeBitmap]
Meter=BITMAP
MeasureName=MeasureVolume
BitmapImage="Bitmap"
BitmapFrames=98
BitmapZeroFrame=1
X=r
Y=r

;[VolumeText]
Meter=STRING
MeasureName=MeasureVolume
X=290
Y=2
MeterStyle=Style
Text="%1%"
FontSize=6

------------------------------------------------


[Progress0]
Meter=IMAGE
SolidColor=0,0,0,1
X=180
Y=12
W=4
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetPosition 0"

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

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

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

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

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

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

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

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

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

-------------------------------

[Volume0]
Meter=IMAGE
SolidColor=0,0,0,1
X=180
Y=3
W=7
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 0"

[Volume1]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=10
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 5"

[Volume2]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 10"

[Volume3]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 15"

[Volume4]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 20"

[Volume5]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 25"

[Volume6]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 30"

[Volume7]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 35"

[Volume8]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 40"

[Volume9]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 45"

[Volume10]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 50"

[Volume11]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 55"

[Volume12]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 60"

[Volume13]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 65"

[Volume14]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 70"

[Volume15]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 75"

[Volume16]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 80"

[Volume17]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 85"

[Volume18]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 90"

[Volume19]
Meter=IMAGE
SolidColor=0,0,0,1
X=R
Y=r
W=5
H=5
LeftMouseUpAction=!RainmeterPluginBang "mPlayer SetVolume 95"
