I use SkinWidth and SkinHeight in the [Rainmeter] section to control what is visible.
Scroll your mouse up/down over skin to change the volume.
Here are the images (white numbers and black numbers).
Copy the image(s) and save in a new skin folder as "VolumeRangeW.png" and "VolumeRangeB.png"
I used TransformationMatrix to resize the image (see notes in the code).
Code: Select all
[Rainmeter]
Update=100
AccurateText=1
DynamicWindowSize=1
Group=#RootConfig#
SkinWidth=413
; Full size use 825
; Half size use 413
SkinHeight=55
; Full size use 110
; Half size use 55
; ========= Metadata ==========
[Metadata]
Name=
Author=
Information=
License=Creative Commons Share-Alike NC 4
Version=
; ========= Variables ==========
[Variables]
; ========= Measures ==========
[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin
; ========= Meter Styles ==========
; ========= Meters ==========
; Image is 825x825 pixels
; Use half of it's size as offsets to center rotation
; Use TransformationMatrix to resize. When transformed SkinWidth & SkinHeight must be manually changed in the [Rainmeter] section to control the skin size and visibility
[MeterRotator]
Meter=Rotator
MeasureName=MeasureWin7Audio
W=825
H=825
; White Numbers Image
; Add semicolon below to use Black Numbers
ImageName=VolumeRangeW.png
; Remove semicolon below for Black Numbers Image
; ImageName=VolumeRangeB.png
StartAngle=(Rad(90))
RotationAngle=(-Rad(180))
OffsetX=413
OffsetY=413
; Documentation: https://docs.rainmeter.net/manual-beta/meters/rotator/
DynamicVariables=1
; TransformationMatrix={scale x};{skew y};{skew x};{scale y};{move x};{move y}
; Used to scale image to half of it's original size
TransformationMatrix=0.5;0;0;0.5;0;0
MouseScrollUpAction=[!CommandMeasure "MeasureWin7Audio" "ChangeVolume +1"]
MouseScrollDownAction=[!CommandMeasure "MeasureWin7Audio" "ChangeVolume -1"]
SolidColor=0,0,0,1
[CenterLine]
Meter=Image
X=409
Y=0
W=8
H=58
SolidColor=255,0,0,210
TransformationMatrix=0.5;0;0;0.5;0;0
Feel free to ask about anything you might want to change.
EDIT: Attached alternate images that do not have hash marks above and below the 0~100 scale... it's always good to have options
Use these images in the Rotator meter; no code changes needed. Properly credited Mor3bane for the Rotator suggestion.