Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 904

Help: Rainmeter Skins • Volume Shape Meters.

$
0
0
A rather simple question, but, how do I use shape meter instead of bar in case of 2 plugins - win7audio and nowplaying.
The Static Width and Height and X and Y can be set, but I wanted the Width to change as per the Volume Changes in Media Player/System.
How can achieve this?

Below is the relevant code:

Code:

[Variables]CMinWH=120PlayerName=WINAMPVolRate=5[MeasureVolume]Measure=PluginPlugin=Win7AudioPlugin[MeasureVolumeMP]Measure=PluginPlugin=NowPlayingPlayerType=VolumePlayerName=#PlayerName#[MinVolume]Meter=BarMeasureName=MeasureVolumeX=5Y=(#CMinWH#-6)W=(#CMinWH#-12)H=3BarColor=255,255,255SolidColor=0,0,0,1BarOrientation=HorizontalMouseScrollUpAction=[!CommandMeasure "MeasureVolume" "ChangeVolume +#VolRate#"]MouseScrollDownAction=[!CommandMeasure "MeasureVolume" "ChangeVolume -#VolRate#"]DynamicVariables=1[MinVolumeMP]Meter=BarMeasureName=MeasureVolumeMPX=([MinVolume:X])Y=([MinVolumeMP:H])W=([MinVolume:W])H=3BarColor=255,255,255BarOrientation=HorizontalMouseScrollUpAction=[!CommandMeasure "MeasureVolumeMP" "SetVolume +#VolRate#"][!UpdateMeasure "MeasureVolumeMP"]MouseScrollDownAction=[!CommandMeasure "MeasureVolumeMP" "SetVolume -#VolRate#"][!UpdateMeasure "MeasureVolumeMP"]DynamicVariables=1
Also, before anyone says: why use a variable in X and Y - The said variable is subject to changes in the skin.

Statistics: Posted by Aryx — January 30th, 2024, 1:28 pm — Replies 3 — Views 121



Viewing all articles
Browse latest Browse all 904

Trending Articles