[Rainmeter]
Author=Yus
Update=30

[MeasureMIX1]
Measure=Calc
Formula=(Random)
UpdateRandom=1
UniqueRandom=1
LowBound=50
HighBound=254
UpdateDivider=20

[MeasureMIX2]
Measure=Calc
Formula=(Random)
UpdateRandom=2
UniqueRandom=1
LowBound=50
HighBound=254
UpdateDivider=20

[MeasureMIX3]
Measure=Calc
Formula=(Random)
UpdateRandom=3
UniqueRandom=1
LowBound=50
HighBound=254
UpdateDivider=20

;--------------------------->Player Measures-->
[MeasureRO]
Measure=Calc
Formula=Counter % 10000

[MainMPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=AIMP
PlayerPath="C:\Program Files (x86)\AIMP3\AIMP3.exe"
PlayerType=Title
DisableLeadingZero=0
UpdateDivider=5
Substitute="":"Неизвестный исполнитель"

[MPosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MainMPlayer]
PlayerType=Position

[MArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MainMPlayer]
PlayerType=Artist

[MDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MainMPlayer]
PlayerType=Duration

[MChangeButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MainMPlayer]
PlayerType=State
Substitute="0":"play.png","1":"pause.png","2":"play.png"
IfEqualValue=1
IfEqualAction=!execute [!SetOption "roLeft" "MeasureName" "MeasureRO"][!SetOption "roRight" "MeasureName" "MeasureRO"][!HideMeter RoundRightSh][!HideMeter RoundLeftSh]
IfBelowValue=1
IfBelowAction=!execute [!SetOption "roLeft" "MeasureName" "stop"][!SetOption "roRight" "MeasureName" "stop"][!ShowMeter RoundRightSh][!ShowMeter RoundLeftSh]
IfAboveValue=1
IfAboveAction=!execute [!SetOption "roLeft" "MeasureName" "stop"][!SetOption "roRight" "MeasureName" "stop"][!ShowMeter RoundRightSh][!ShowMeter RoundLeftSh]

[MChangeRepeat]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MainMPlayer]
PlayerType=Repeat
Substitute="0":"rep.png","1":"rep1.png"

[MChangeRandom]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MainMPlayer]
PlayerType=Shuffle
Substitute="0":"ran.png","1":"ran1.png"

[MProgressBar]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MainMPlayer]
PlayerType=Progress

[MVolumeBar]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MainMPlayer]
PlayerType=Volume

;--------------------------->Player Color-->
[BBar]
Meter=Image
SolidColor=[MeasureMIX1],[MeasureMIX2],[MeasureMIX3]
DynamicVariables=1
W=150
H=45
X=175
Y=82

[BBarRand]
Meter=Image
SolidColor=[MeasureMIX1],[MeasureMIX2],[MeasureMIX3]
DynamicVariables=1
W=20
H=22
X=157
Y=141

[BBarRep]
Meter=Image
SolidColor=[MeasureMIX1],[MeasureMIX2],[MeasureMIX3]
DynamicVariables=1
W=20
H=22
X=317
Y=141

[BBarPro]
Meter=Image
SolidColor=0,0,0,220
W=170
H=10
X=165
Y=60

;--------------------------->Player Buttons-->
[Button_Play&Pause]
Meter=Button
ButtonImage=[MChangeButton]
X=212
Y=85
LeftMouseUpAction=[!PluginBang "MainMPlayer PlayPause"]
DynamicVariables=1

[Button_Stop]
Meter=Button
ButtonImage=stop.png
X=175
Y=92
LeftMouseUpAction=[!PluginBang "MainMPlayer Stop"][!SetOption "roLeft" "MeasureName" "stop"][!SetOption "roRight" "MeasureName" "stop"]

[Button_Previous]
Meter=Button
ButtonImage=previous.png
X=259
Y=92
LeftMouseUpAction=[!PluginBang "MainMPlayer Previous"]

[Button_Next]
Meter=Button
ButtonImage=next.png
X=293
Y=92
LeftMouseUpAction=[!PluginBang "MainMPlayer Next"]


[Button_Repeat]
Meter=Button
ButtonImage=[MChangeRepeat]
X=317
Y=141
LeftMouseUpAction=[!CommandMeasure "MainMPlayer" "SetRepeat -1"]
DynamicVariables=1

[Button_Random]
Meter=Button
ButtonImage=[MChangeRandom]
X=158
Y=142
LeftMouseUpAction=[!CommandMeasure "MainMPlayer" "SetShuffle -1"]
DynamicVariables=1

;--------------------------->Player Vol&Prog Bar-->
@include=#SKINSPATH#MYREACTORS\AIMP\VP.inc

[VolumeBar]
Meter=Bar
MeasureName=MVolumeBar
BarColor=[MeasureMIX1],[MeasureMIX2],[MeasureMIX3]
DynamicVariables=1
BarOrientation=Horizontal
W=98
H=11
X=200
Y=139

[ProgerssBar]
Meter=Bar
MeasureName=MProgressBar
BarImage=ProgressBar.png
BarOrientation=Horizontal
X=165
Y=60
ImageTint=[MeasureMIX1],[MeasureMIX2],[MeasureMIX3]
DynamicVariables=1
Greyscale=1

;--------------------------->Player Ro-->
[RoundLeft]
Meter=Image
ImageName=round.png
X=4
Y=11
ImageTint=[MeasureMIX1],[MeasureMIX2],[MeasureMIX3]
DynamicVariables=1
Greyscale=1

[RoundRight]
Meter=Image
ImageName=round.png
X=324
Y=11
ImageTint=[MeasureMIX1],[MeasureMIX2],[MeasureMIX3]
DynamicVariables=1
Greyscale=1

[RoundLeftSh]
Meter=Image
ImageName=round.png
X=4
Y=11
ImageTint=0,0,0,150
Greyscale=1

[RoundRightSh]
Meter=Image
ImageName=round.png
X=324
Y=11
ImageTint=0,0,0,150
Greyscale=1

[roLeft]
Meter=Rotator
MeasureName=MeasureRO
ImageName=an.png
StartAngle=6.2831
RotationAngle=6.2831
ValueReminder=120
W=110
H=110
X=32
Y=42
OffSetY=55
OffSetX=55

[roRight]
Meter=Rotator
MeasureName=MeasureRO
ImageName=an.png
StartAngle=6.2831
RotationAngle=6.2831
ValueReminder=120
W=110
H=110
X=352
Y=42
OffSetY=55
OffSetX=55



;--------------------------->Track Name-->
[Bo]
Meter=Image
ImageName=aimp.png
X=0
Y=0

[TrackName]
Meter=STRING
MeasureName=MArtist
MeasureName2=MainMPlayer
MeasureName3=MDuration
X=170
Y=39
W=180
H=13
FontColor=[MeasureMIX1],[MeasureMIX2],[MeasureMIX3]
DynamicVariables=1
FontFace=AGPalatial
FontSize=8
StringStyle=Bold
StringAlign=Left
Text=%1 - %2 ( %3 )
AntiAlias=1
ClipString=1
LeftMouseDoubleClickAction=[!CommandMeasure "MainMPlayer" "OpenPlayer"]

