Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Rainmeter]
- Update=20
- Author=Alice Farmer
- DynamicWindowSize=1
- [Metadata]
- Name=Mousewheel volume control for Windows Media Player
- License=None
- Version=1.0.0
- [Variables]
- height=#SCREENAREAHEIGHT#
- width=#SCREENAREAWIDTH#
- BorderSizeVert=66
- BorderSizeHorz=320
- BorderThickness=2
- BorderColor=0,8,4,200
- FontBorder=0,64,60
- TitleWidth=[MeterTitle:W]-8
- BordTitleWidth=0
- SoundInterpolation=20
- ;////////;
- ;Measures;
- ;////////;
- [MeasureVolume]
- Measure=Plugin
- Plugin=NowPlaying
- PlayerName=WMP
- PlayerType=Volume
- [MeasureTitle]
- Measure=Plugin
- Plugin=NowPlaying
- PlayerName=WMP
- PlayerType=Title
- [MeasureDuration]
- Measure=Plugin
- Plugin=NowPlaying
- PlayerName=WMP
- PlayerType=Duration
- DisableLeadingZero=1
- [MeasurePosition]
- Measure=Plugin
- Plugin=NowPlaying
- PlayerName=WMP
- PlayerType=Position
- DisableLeadingZero=1
- Substitute="":" "
- ; Return value is 1 on error
- IfEqualValue=1
- IfEqualAction=[!UpdateMeasure "MeasureTitle"][!UpdateMeter "MeterTitle"][!RainmeterRedraw][!Refresh][!Update][!Redraw]
- [MeasureAudio]
- Measure=Plugin
- Plugin=AudioLevel
- Port=Output
- RMSAttack=#SoundInterpolation#
- RMSDecay=#SoundInterpolation#
- RMSGain=25
- FFTSize=1024
- FFTOverlap=512
- FFTAttack=#SoundInterpolation#
- FFTDecay=#SoundInterpolation#
- PeakGain=5000
- PeakAttack=#SoundInterpolation#
- PeakDecay=#SoundInterpolation#
- Bands=1
- MinValue=0.0
- MaxValue=1.0
- [MeasureSoundLevelFFT]
- Measure=Plugin
- Plugin=AudioLevel
- Parent=MeasureAudio
- Channel=Sum
- Type=FFT
- FFTIdx=96
- [MeasureSoundLevelRMS]
- Measure=Plugin
- Plugin=AudioLevel
- Parent=MeasureAudio
- Channel=Sum
- Type=RMS
- [CheckPlayer]
- Measure=Plugin
- Plugin=NowPlaying
- PlayerName=WMP
- PlayerType=State
- IfCondition=[CheckPlayer]
- IfTrueAction=[!ClickThrough 1][!ZPos -2]
- IfFalseAction=[!ClickThrough 0][!ZPos 2]
- ;//////////////;
- ;Main Structure;
- ;//////////////;
- [TitleCalc]
- Measure=CALC
- Formula=#TitleWidth# >= #BorderSizeHorz#
- IfCondition=#TitleWidth# >= #BorderSizeHorz#
- IfTrueAction=!SetVariable BordTitleWidth [MeterTitle:W]
- IfFalseAction=!SetVariable BordTitleWidth #BorderSizeHorz#
- DynamicVariables=1
- [MainBG]
- Meter=IMAGE
- X=0
- Y=30
- H=64
- W=#BordTitleWidth#
- DynamicVariables=1
- SolidColor=0,32,24,100;
- MouseScrollDownAction=[!CommandMeasure "MeasureVolume" "SetVolume -1"][!Redraw]
- MouseScrollUpAction=[!CommandMeasure "MeasureVolume" "SetVolume +1"][!Redraw]
- LeftMouseUpAction=[!CommandMeasure "MeasureTitle" PlayPause][!Redraw]
- MouseActionCursor=0
- [MainBGBorderT]
- Meter=Line
- MeasureName=MeasureVolume
- X=0
- Y=30
- H=#BorderThickness#
- W=#BordTitleWidth#
- SolidColor=#BorderColor#
- LineColor=#BorderColor#
- DynamicVariables=1
- [MainBGBorderB]
- Meter=LINE
- MeasureName=MeasureVolume
- X=0
- Y=94
- H=#BorderThickness#
- W=#BordTitleWidth#
- SolidColor=#BorderColor#
- LineColor=#BorderColor#
- DynamicVariables=1
- [MainBGBorderL]
- Meter=LINE
- MeasureName=MeasureVolume
- X=0
- Y=30
- H=#BorderSizeVert#
- W=#BorderThickness#
- SolidColor=#BorderColor#
- LineColor=#BorderColor#
- [MainBGBorderR]
- Meter=LINE
- MeasureName=MeasureVolume
- X=(#BordTitleWidth# - #BorderThickness#)
- Y=30
- H=#BorderSizeVert#
- W=#BorderThickness#
- SolidColor=#BorderColor#
- LineColor=#BorderColor#
- DynamicVariables=1
- ;///////////////;
- ;Measure Outputs;
- ;///////////////;
- ;Song/Video Title
- [MeterTitle]
- Meter=String
- ;MeasureName=MeasureTitle
- X=4
- Y=35
- H=15
- FontColor=0,255,168
- FontSize=10
- StringEffect=BORDER
- FontEffectColor=#FontBorder#
- Text="Title: [MeasureTitle]"
- ;Text="Title: %1"
- AntiAlias=0
- DynamicVariables=1
- ;Previous/Next Track Buttons
- [SongPrevBG]
- Meter=LINE
- SolidColor=0,64,32
- LineColor=0,48,24
- X=110
- Y=70
- W=24
- H=20
- LeftMouseUpAction=[!CommandMeasure "MeasureTitle" "Previous"][!Redraw]
- [SongPrev]
- Meter=STRING
- MeasureName=MeasureVolumeUp
- X=2r
- Y=-2r
- Text="â—€"
- FontSize=12
- FontColor=0,255,168
- AntiAlias=1
- StringEffect=BORDER
- FontEffectColor=#FontBorder#
- [SongNextBG]
- Meter=LINE
- SolidColor=0,64,32
- LineColor=0,48,24
- X=140
- Y=70
- W=24
- H=20
- LeftMouseUpAction=[!CommandMeasure "MeasureTitle" "Next"][!Redraw]
- [SongNext]
- Meter=STRING
- MeasureName=MeasureVolumeUp
- X=1r
- Y=-2r
- Text="â–¶"
- FontSize=12
- FontColor=0,255,168
- AntiAlias=1
- StringEffect=BORDER
- FontEffectColor=#FontBorder#
- ;Volume Level String and Bar
- [VolumeLevel]
- Meter=STRING
- X=4
- Y=54
- W=62
- H=23
- Group=Volume
- FontColor=0,255,168
- FontSize=10
- StringEffect=BORDER
- FontEffectColor=0,64,60
- Text="Volume: [MeasureVolume]"
- ClipString=0
- AntiAlias=0
- DynamicVariables=1
- [VolumeBarBG]
- Meter=IMAGE
- ImageName=VolumeBarBG.png
- X=6
- Y=70
- H=20
- W=100
- ImageAlpha=128
- [VolumeBar]
- Meter=LINE
- MeasureName=MeasureVolume
- X=r
- Y=r
- H=20
- W=[MeasureVolume]
- LineColor=0,0,0,0
- SolidColor=0,255,196,128
- DynamicVariables=1
- [VolumeBarFG]
- Meter=IMAGE
- ImageName=VolumeBarBG.png
- X=r
- Y=r
- H=20
- W=100
- ImageAlpha=164
- ;Song Duration and Current Position
- [DisplayPosition]
- Meter=STRING
- X=167
- Y=54
- W=62
- H=23
- FontColor=0,255,168
- FontSize=10
- StringEffect=BORDER
- FontEffectColor=0,64,60
- Text=[MeasurePosition] / [MeasureDuration]
- ClipString=0
- AntiAlias=0
- DynamicVariables=1
- StringAlign=Right
- ;Volume Level Graph
- [VolumeHistogram]
- Meter=Histogram
- MeasureName=MeasureSoundLevelFFT
- MeasureName2=MeasureSoundLevelRMS
- GraphStart=Right
- GraphOrientation=Vertical
- SolidColor=0,255,255,32
- PrimaryColor=0,255,196
- SecondaryColor=0,128,255
- BothColor=0,196,255
- X=168
- y=54
- W=(#BordTitleWidth# - 174)
- H=36
- DynamicVariables=1
- UpdateDivider=2
- [MeasureFFTCalc]
- Measure=Calc
- Formula=MeasureSoundLevelFFT*100
- UpdateDivider=2
- [VolumeStringFFT]
- Meter=String
- MeasureName=MeasureFFTCalc
- x=2r
- y=2r
- w=64
- fontcolor=0,255,196
- fontsize=8
- text=FFT: %1
- StringEffect=BORDER
- FontEffectColor=#FontBorder#
- NumOfDecimals=1
- [MeasureRMSCalc]
- Measure=Calc
- Formula=MeasureSoundLevelRMS*100
- UpdateDivider=2
- [VolumeStringRMS]
- Meter=String
- MeasureName=MeasureRMSCalc
- x=(#BordTitleWidth# - 232)r
- y=r
- w=64
- fontcolor=0,128,255
- fontsize=8
- text=RMS: %1
- StringEffect=BORDER
- FontEffectColor=#FontBorder#
- NumOfDecimals=1
- DynamicVariables=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement