[Rainmeter]
Author=Utkarsh
Update=1000
Blur=1
BlurRegion=1,10,95,310,123

[Metadata]
Name=PragPlayer
Description=
Version=3.0
License=

[variables]
player=Aimp


[txt_styleW]
StringStyle=NORMAL
FontColor=0,0,0,120
StringEffect=SHADOW
FontEffectColor=255,255,255,255
FontSize=8
FontFace=calibri
AntiAlias=1

~~~~~~~~~~~~~~~~~~~~~

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#player#
PlayerType=TITLE
PlayerPath=
DisableLeadingZero=0
Substitute="":"N\A"

[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="":"cover.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

[mRating]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=RATING

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

[mStateButton1]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE

[animation]
Measure=Calc
Formula=[mStateButton1]
IfEqualValue=0
IfEqualAction=!Execute [!RainmeterHideMeterGroup details]
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeterGroup details]
UpdateDivider=0,0001
DynamicVariables=1

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

~~~~~~~~~~~~~~~~~UI~~~~~~~~~~~~~~~~

[Background]
Meter=IMAGE
ImageName=BG.png



[Cover]
Meter=IMAGE
MeasureName=mCover
X=23
Y=21
W=71
H=71
SolidColor=FFFFFF10

[Stars]
Meter=BITMAP
X=103
Y=63
MeasureName=mRating
BitmapImage=ratings.png
BitmapFrames=6
BitmapZeroFrame=1

[SetRating1]
Meter=BUTTON
ButtonImage=star.png
X=110
Y=70
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetRating 1"]

[SetRating2]
Meter=BUTTON
ButtonImage=star.png
X=20r
Y=r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetRating 2"]

[SetRating3]
Meter=BUTTON
ButtonImage=star.png
X=20r
Y=r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetRating 3"]

[SetRating4]
Meter=BUTTON
ButtonImage=star.png
X=20r
Y=r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetRating 4"]

[SetRating5]
Meter=BUTTON
ButtonImage=star.png
X=20r
Y=r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetRating 5"]

~~~~~~~~~~~~~~~~Main~~~~~~~~~~~~~~~~~~~

[Track]
Meter=STRING
MeasureName=mPlayer
MeterStyle=txt_styleW
X=100
Y=29
W=185
H=16
ClipString=1
Text="%1"

[Artist]
Meter=STRING
MeasureName=mArtist
MeterStyle=txt_styleW
X=100
Y=14r
W=185
H=16
ClipString=1
Text="%1"

[Time]
Meter=STRING
MeasureName=mPosition
MeasureName2=mDuration
MeterStyle=txt_styleW
FontColor=255,255,255,255
FontEffectColor=0,0,0,120
X=90
Y=97
W=185
H=16
ClipString=1
Text="%1/%2"

[ProgressBar_bg]
Meter=IMAGE
ImageName=barbg.png
X=90
Y=13r

[ProgressBar]
Meter=BAR
MeasureName=mProgress
BarImage=bar.png
X=r
Y=r
BarOrientation=HORIZONTAL

; =======================================
; TRACK ACTIONS

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

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

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

[Volume]
Meter=IMAGE
ImageName=Volume.png
X=267
Y=95

[VolumeText]
Meter=STRING
MeasureName=mVolume
MeterStyle=txt_styleW
FontColor=255,255,255,255
FontEffectColor=0,0,0,120
X=14r
Y=7r
W=45
H=16
ClipString=1
Text="%1%"

[VolumeUp]
Meter=IMAGE
ImageName=Up.png
X=4r
Y=-9r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetVolume +25"]

[VolumeDown]
Meter=IMAGE
ImageName=Down.png
X=r
Y=20r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetVolume -25"]

; =======================================
; PLAYER ACTIONS

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

[ClosePlayer]
Meter=BUTTON
ButtonImage=ButtonC.png
X=r
Y=r
ToolTipText="Close Media Player"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer ClosePlayer"]
Hidden=1
Group=details

[Coverup]
Meter=IMAGE
ImageName=coverup.png
X=15
Y=18

; =======================================
; MEDIA OPTIONS

[winamp_option]
Meter=BUTTON
ButtonImage=option.png
X=240
Y=8
MouseOverAction=!Execute [!RainmeterShowMeter winamp_text][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter winamp_text][!RainmeterRedraw]
ButtonCommand=!Execute [!RainmeterWriteKeyValue "Variables" "player" "winamp" "#SKINSPATH#Pragmatic Vidhz (4.0)\player\pragplayer.ini"][!RainmeterRefresh]

[WMP_option]
Meter=BUTTON
ButtonImage=option.png
X=25r
Y=r
MouseOverAction=!Execute [!RainmeterShowMeter WMP_text][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter WMP_text][!RainmeterRedraw]
ButtonCommand=!Execute [!RainmeterWriteKeyValue "Variables" "player" "WMP" "#SKINSPATH#Pragmatic Vidhz (4.0)\player\pragplayer.ini"][!RainmeterRefresh]

[iTunes_option]
Meter=BUTTON
ButtonImage=option.png
X=25r
Y=r
MouseOverAction=!Execute [!RainmeterShowMeter iTunes_text][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter iTunes_text][!RainmeterRedraw]
ButtonCommand=!Execute [!RainmeterWriteKeyValue "Variables" "player" "iTunes" "#SKINSPATH#Pragmatic Vidhz (4.0)\player\pragplayer.ini"][!RainmeterRefresh]

[winamp_text]
Meter=STRING
MeterStyle=txt_styleW
Text="WINAMP"
StringAlign=Right
X=235
Y=13
Hidden=1

[WMP_text]
Meter=STRING
MeterStyle=txt_styleW
StringAlign=Right
Text="WMP"
X=r
Y=r
Hidden=1

[iTunes_text]
Meter=STRING
MeterStyle=txt_styleW
Text="iTunes"
StringAlign=Right
X=r
Y=r
Hidden=1

[orange]
Meter=IMAGE
ImageName=orange.png
X=0
Y=97