It is currently February 25th, 2021, 10:57 pm

Volume control

General topics related to Rainmeter.
JohnCoool
Posts: 20
Joined: July 26th, 2020, 10:57 pm

Volume control

Post by JohnCoool »

I took a look at some threads but it was not clear enough to get what I need.

I installed a volume skin.

Can someone paste a link that explains how to edit control.

I want to create a key combination to increase or decrease volume without using the mouse.

I need one for Rainmeter. I have software that can do that for windows. But it does not cover my exact requirement.

Please assist me.
User avatar
SilverAzide
Rainmeter Sage
Posts: 1134
Joined: March 23rd, 2015, 5:26 pm

Re: Volume control

Post by SilverAzide »

JohnCoool wrote: February 19th, 2021, 1:59 pm I took a look at some threads but it was not clear enough to get what I need.

I installed a volume skin.

Can someone paste a link that explains how to edit control.

I want to create a key combination to increase or decrease volume without using the mouse.

I need one for Rainmeter. I have software that can do that for windows. But it does not cover my exact requirement.

Please assist me.
Start here, then try this for the hot keys.
Gadgets Wiki GitHub More Gadgets...
User avatar
jsmorley
Developer
Posts: 21546
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Volume control

Post by jsmorley »

Code: Select all

[Rainmeter]
Update=-1
DynamicWindowSize=1
AccurateText=1

[Variables]

[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin

[MeasureVolumeUp]
Measure=Plugin
Plugin=HotKey
HotKey=CTRL UP
KeyDownAction=[!CommandMeasure "MeasureWin7Audio" "ChangeVolume 1"][!Update]

[MeasureVolumeDown]
Measure=Plugin
Plugin=HotKey
HotKey=CTRL DOWN
KeyDownAction=[!CommandMeasure "MeasureWin7Audio" "ChangeVolume -1"][!Update]

[MeterVolume]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
Text=[MeasureWin7Audio:]%
HotKey Plugin (You need to install this)
Win7Audio Plugin (This comes with Rainmeter)
User avatar
balala
Rainmeter Sage
Posts: 12279
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Volume control

Post by balala »

JohnCoool wrote: February 19th, 2021, 1:59 pm I want to create a key combination to increase or decrease volume without using the mouse.
In addition to SilverAzide's jsmorley's reply, let's advice a little bit deeper the OP.
First thing which has to be done, is to install the HotKey plugin. To do this, you have to follow the link posted by SilverAzide and download the HotKey_1.0.0.12.rmskin skin installer, uploaded by Brian at the end of his post. Install the downloaded package and this way you get installed the appropriate version of of the plugin, into the proper place. Now you can try the posted code and it's gonna work.
JohnCoool
Posts: 20
Joined: July 26th, 2020, 10:57 pm

Re: Volume control

Post by JohnCoool »

All worked well!

One command is not working for mute. Please review my changes and edit it.

[MeasureVolumeDown]
Measure=Plugin
Plugin=HotKey
HotKey=CTRL F1
KeyDownAction=[!CommandMeasure "MeasureWin7Audio" "ToggleMute"][!Update]
User avatar
jsmorley
Developer
Posts: 21546
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Volume control

Post by jsmorley »

JohnCoool wrote: February 19th, 2021, 3:35 pm All worked well!

One command is not working for mute. Please review my changes and edit it.

[MeasureVolumeDown]
Measure=Plugin
Plugin=HotKey
HotKey=CTRL F1
KeyDownAction=[!CommandMeasure "MeasureWin7Audio" "ToggleMute"][!Update]
You can't have two [Sections] with the same name...

[MeasureVolumeToggleMute]
Measure=Plugin
Plugin=HotKey
HotKey=CTRL F1
KeyDownAction=[!CommandMeasure "MeasureWin7Audio" "ToggleMute"][!Update]
JohnCoool
Posts: 20
Joined: July 26th, 2020, 10:57 pm

Re: Volume control

Post by JohnCoool »

All done!

Thanks to all!!
User avatar
jsmorley
Developer
Posts: 21546
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Volume control

Post by jsmorley »

Glad to help!