[Rainmeter]
Author=Tornado (7themes.su)
Update=100

[Variables]
Player=aimp
PlayerPath="C:\Program Files (x86)\AIMP3\AIMP3.exe"

[meterbg]
meter=image
imagename=bg.png
X=0
Y=0
W=192
h=236

[style]
FontFace=pirulen rg
FontColor=122,122,122,255
FontSize=6
ClipString=1

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE
PlayerPath=#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"

[mRepeat]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mTitle]
PlayerType=Repeat

[mShuffle]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mTitle]
PlayerType=Shuffle

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

[metercovrbg]
meter=image
imagename=covr.png
X=13
Y=10

[MeterCover]
Meter=IMAGE
MeasureName=mCover
x=23
y=20
W=108
H=108
LeftMouseUpAction=!Execute [!CommandMeasure "mPlayer" "OpenPlayer"]

[Track]
Meter=STRING
MeasureName=mPlayer
X=16
Y=143
W=160
H=10
StringAlign=left
MeterStyle=style
Text="%1"

[Time]
Meter=STRING
MeasureName=mPosition
X=176
Y=159
W=50
H=15
StringAlign=right
MeterStyle=style
Text="%1"

[Previous]
Meter=Button
ButtonImage=prew.png
ImageAlpha=250
X=19
Y=177
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Previous"]

[Play]
Meter=Button
ButtonImage=[mStateButton]
ImageAlpha=250
X=60
Y=177
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer PlayPause"]
DynamicVariables=1

[Stop]
Meter=Button
ButtonImage=Stop.png
ImageAlpha=250
X=100
Y=177
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Stop"]

[Next]
Meter=Button
ButtonImage=Next.png
ImageAlpha=250
X=142
Y=177
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Next"]

[Metervolbg]
meter=image
imagename=volbg.png
x=40
y=205

[Metervol]
MeasureName=mVolume
Meter=Bar
BarImage=vol.png
x=40
y=205
BarOrientation=Horizontal

[ProgressBar]
Meter=BAR
MeasureName=MeasureProgress
BarImage=Pr.png
BarOrientation=HORIZONTAL
X=16
Y=161

[Shuffle]
Meter=Button
ButtonImage=sh.png
ImageAlpha=250
X=121
Y=200
LeftMouseUpAction=!Execute [!CommandMeasure "mPlayer" "SetShuffle -1"]

[Repeat]
Meter=Button
ButtonImage=rp.png
ImageAlpha=250
X=146
Y=199
LeftMouseUpAction=!Execute [!CommandMeasure "mPlayer" "SetRepeat -1"]
