Worked fine for me. Great job. You ready to get the code into our repository and have this included with the Rainmeter build? You get full credit as author of course.reiswaffel wrote: The plugin is complete. Check it out: http://reiswaffel.deviantart.com/art/Windows-7-Audio-Plugin-166316150
Mute sets the numeric measure to 0. Unmute sets it back to the previous value. See the example config for bangs.
It is currently April 25th, 2024, 3:17 pm
System volume plugin idea for Rainmeter - Need feedback
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: System volume plugin idea for Rainmeter - Need feedback
-
- Posts: 667
- Joined: April 18th, 2010, 2:16 pm
- Location: NY, USA
Re: System volume plugin idea for Rainmeter - Need feedback
Any chance there'll be a plugin for XP?
It's not completely outdated yet. :P
It's not completely outdated yet. :P
-
- Posts: 127
- Joined: June 10th, 2009, 8:26 am
Re: System volume plugin idea for Rainmeter - Need feedback
that will run 7 easy, and not just basic. a bit more ram wouldnt hurt and its not expensive now for ddr2JpsCrazy wrote:Dell lattiude d620. 55gb harddrive and 1gb of ram. Default video card, with no pixel shading. I need a new computer altogether. Ahaa.
-
- Posts: 127
- Joined: June 10th, 2009, 8:26 am
Re: System volume plugin idea for Rainmeter - Need feedback
im just wondering if there will be any future developments to this plugin, perhaps controlling left/right independantly or speakers/systemsounds ect. this is great either way!
-
- Posts: 9
- Joined: June 4th, 2010, 3:20 pm
Re: System volume plugin idea for Rainmeter - Need feedback
Sounds good, should I commit myself or do you just want the code?jsmorley wrote:Worked fine for me. Great job. You ready to get the code into our repository and have this included with the Rainmeter build? You get full credit as author of course.
I'm afraid the API doesn't support this.wasky1 wrote:im just wondering if there will be any future developments to this plugin, perhaps controlling left/right independantly or speakers/systemsounds ect. this is great either way!
Well, yes it isJpsCrazy wrote:Any chance there'll be a plugin for XP?
It's not completely outdated yet. :P
It might be hard to find a developer who hasn't already switched to something more recent on his own machine. XP is almost 9 years old.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: System volume plugin idea for Rainmeter - Need feedback
I'd need the code. You can PM it to me.reiswaffel wrote: Sounds good, should I commit myself or do you just want the code?
-
- Posts: 13
- Joined: May 28th, 2010, 11:03 pm
- Location: Georgia
Re: System volume plugin idea for Rainmeter - Need feedback
Is there a way to display the measured volume as text (eg. Volume: 50%) using the Win7AudioPlugin? Also I can't seem to get the SetVolume bangs to work. The SoundExample Skin works just fine but for some reason when I copy and paste the bang to my skin it doesn't work. Here is the current code for the skin I am trying to apply the plugin to. Ignore the first 3 Measures as they are from the original skin by nasasempai and involve registry values. I am running Win 7 Pro 32 bit and Rainmeter 1.2. Thanks in advance for any help.
Code: Select all
[Rainmeter]
Update = 100
MouseActionCursor=1
Author = nasasempai
;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins
[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=
;End of added Metadata
[Variables]
Color1 = 255,255,255,80
Color2 = 0,235,255,255
Color3 = 0,180,255,150
RegPath = SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0000\GlobalSettings\RearLineOut\Node000
RegPath2 = SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0000\GlobalSettings\RearLineOut\Node001
;MEASURES------------------------------------------------------------------------------------------
;[Measure_Calc1]
;Measure = Calc
;Formula = 1
;[Measure_VolRegKey]
;Measure = Registry
;RegKey = #RegPath#
;RegHKey = HKEY_LOCAL_MACHINE
;RegValue = Chan000
;[Measure_Vol]
;Measure = Calc
;Formula = ( ((SGN((TRUNC((FRAC((Measure_VolRegKey)/100000000))*10000))-8872))=(-1)) ? (100) : (ROUND(((0.167214*1.010333**((TRUNC((FRAC((Measure_VolRegKey)/100000000))*10000))-8872))/100.896625)*99)) )
;MaxValue = 100
;MinValue = 0
[MeasureVolume]
Measure=Plugin
Plugin=Win7AudioPlugin.dll
[MeasureMute]
Measure = Registry
RegKey = #RegPath2#
RegHKey = HKEY_LOCAL_MACHINE
RegValue = Chan000
Substitute="1.0":"Muted","0.0":""
IfEqualValue=1.0
IfEqualAction=!execute [!RainmeterHideMeter Meter_Vol_Text] [!RainmeterShowMeter MeterMute]
IfBelowValue=1.0
IfBelowAction=!execute [!RainmeterShowMeter Meter_Vol_Text] [!RainmeterHideMeter MeterMute]
;METERS--------------------------------------------------------------------------------------------
[Meterbg]
Meter=Image
X=0
Y=0
W=150
H=60
SolidColor=0,235,255,1
[MeterMute]
Hidden=1
Meter=String
MeasureName=MeasureMute
X=75
Y=0
StringAlign=Center
FontColor = #Color2#
AutoScale = 1
StringStyle = BOLD
AntiAlias = 1
[Meter_Vol_Text]
Meter=String
MeasureName=MeasureVolume
X=75
Y=0
StringAlign=Center
FontColor=#Color2#
;AutoScale=1
StringStyle=BOLD
AntiAlias=1
Text="Volume: %1%"
[MeterVol]
Meter=Bar
MeasureName=MeasureVolume
X=0
Y=21
W=150
H=15
SolidColor=#Color3#
BarColor=#Color2#
BarOrientation=HORIZONTAL
[Meter25%]
Meter=Image
X=36
Y=28
W=3
H=8
SolidColor=0,0,0,255
[Meter50%]
Meter=Image
X=73.5
Y=r
W=3
H=8
SolidColor=0,0,0,255
[Meter75%]
Meter=Image
X=111
Y=r
W=3
H=8
SolidColor=0,0,0,255
[Meter25]
Meter=String
X=36
Y=5R
StringAlign=Center
FontColor=#Color2#
Text="25%"
LeftMouseDownAction=!Execute [!RainmeterPluginBang "MeasureWin7Audio SetVolume 25"]
[Meter50]
Meter=String
X=73.5
Y=r
StringAlign=Center
FontColor=#Color2#
Text="50%"
LeftMouseDownAction=!Execute [!RainmeterPluginBang "MeasureWin7Audio SetVolume 50"]
[Meter75]
Meter=String
X=111
Y=r
StringAlign=Center
FontColor=#Color2#
Text="75%"
LeftMouseDownAction=!Execute [!RainmeterPluginBang "MeasureWin7Audio SetVolume 75"]
[hsimg]http://dl.dropbox.com/u/9795054/desktop.jpg[/hsimg]
-
- Posts: 127
- Joined: June 10th, 2009, 8:26 am
Re: System volume plugin idea for Rainmeter - Need feedback
im using:-mhinckley3 wrote:Is there a way to display the measured volume as text (eg. Volume: 50%)
Code: Select all
[Variables]
TXT=100
[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin.dll
[text]
Meter=String
X=100
Y=100
FontFace="Trebuchet MS"
FontSize=9
FontColor=255,255,255,255
Text="Volume: #TXT#%"
DynamicVariables=1
[1]
Meter=Button
ButtonImage=A.png
X=10
Y=10
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasureWin7Audio SetVolume 10"][!RainmeterSetVariable TXT 10]
[2]
Meter=Button
ButtonImage=A.png
X=R
Y=r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasureWin7Audio SetVolume 20"][!RainmeterSetVariable TXT 20]
[3]
Meter=Button
ButtonImage=A.png
X=R
Y=r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasureWin7Audio SetVolume 30"][!RainmeterSetVariable TXT 30]
[4]
Meter=Button
ButtonImage=A.png
X=R
Y=r
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasureWin7Audio SetVolume 40"][!RainmeterSetVariable TXT 40]
hope this helps!
-
- Posts: 13
- Joined: May 28th, 2010, 11:03 pm
- Location: Georgia
Re: System volume plugin idea for Rainmeter - Need feedback
I found the issue with the bangs. I forgot to change the measure name from MeasureWin7Audio to MeasureVolume in the quotes. Bang syntax is now on the reading list.
@Wasky1
I like your method but I won't always use the skin to change the volume as my laptop has touch buttons on it for the volume and mute and the value wouldn't update if I use them. Great idea though.
@Wasky1
I like your method but I won't always use the skin to change the volume as my laptop has touch buttons on it for the volume and mute and the value wouldn't update if I use them. Great idea though.
[hsimg]http://dl.dropbox.com/u/9795054/desktop.jpg[/hsimg]
-
- Posts: 127
- Joined: June 10th, 2009, 8:26 am
Re: System volume plugin idea for Rainmeter - Need feedback
ok sussed it:-
[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin.dll
[CalcMeasureWin7Audio]
Measure=Calc
Formula=MeasureWin7Audio
[1text]
Meter=String
MeasureName=CalcMeasureWin7Audio
X=100
Y=100
FontFace="Trebuchet MS"
FontSize=9
FontColor=255,255,255,255
Text="Volume: %1%"
DynamicVariables=1
This working for me
Its actually 1% out though
[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin.dll
[CalcMeasureWin7Audio]
Measure=Calc
Formula=MeasureWin7Audio
[1text]
Meter=String
MeasureName=CalcMeasureWin7Audio
X=100
Y=100
FontFace="Trebuchet MS"
FontSize=9
FontColor=255,255,255,255
Text="Volume: %1%"
DynamicVariables=1
This working for me
Its actually 1% out though