It is currently February 27th, 2021, 10:36 pm

Volume Slider v2.00

Media controls, music players, video and animated visualizers
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Volume Slider v1.30

Post by JpsCrazy »

Sorry to say, but I scrapped the idea.
Since Rainmeter and such updates in intervals and not instantly, it was a bit of a delay.
And I cannot tell you how annoying it was.
Just leaving it with a button you can click for a beep to test.
And I decided on the side-by-side vertical buttons.
dragonmage
Developer
Posts: 1269
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Volume Slider v1.30

Post by dragonmage »

Code: Select all

[Variables]
On=beep.wav
Off=" "
Beep=On

[PLAY #Beep#]


Simplified, but you get the idea. I think it will work like that... Not positive of the effect of using a PLAY with no target.
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Volume Slider v1.30

Post by JpsCrazy »

I made #Clicks# actually work as setting the amount of clicks.
I even was able to make the clicks fit into the bar no matter how many you have... kinda.

I made clicks divide out of 135 (the length of the scroller) then round because when I didn't round the bar was messed up more often than not. With decimals the heights are screwy...

Any ideas how to make it work better?

I went through and tested it, and here are the ones that work the best:
The Clicks that work best are 11, 12, 15, 17, 19, 23, 35, 46 and 47.
The Clicks that work okay are 13, 22, 27, 34, and 45. These numbers have a little bit of space at the bottom.

The code:

Code: Select all

[Variables]
	;The total amount of clicks wanted to reach the maximum volume
	Clicks=47

[msClicks]
	Measure=Calc
	Formula=ROUND(135/#Clicks#)
	DynamicVariables=1

[mtVolume50]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>49)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol50#][!RainmeterSetVariable Vol 50]

[mtVolume49]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>48)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol49#][!RainmeterSetVariable Vol 49]

[mtVolume48]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>47)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol48#][!RainmeterSetVariable Vol 48]

[mtVolume47]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>46)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol47#][!RainmeterSetVariable Vol 47]

[mtVolume46]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>45)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol46#][!RainmeterSetVariable Vol 46]

[mtVolume45]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>44)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol45#][!RainmeterSetVariable Vol 45]

[mtVolume44]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>43)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol44#][!RainmeterSetVariable Vol 44]

[mtVolume43]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>42)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol43#][!RainmeterSetVariable Vol 43]

[mtVolume42]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>41)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol42#][!RainmeterSetVariable Vol 42]

[mtVolume41]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>40)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol41#][!RainmeterSetVariable Vol 41]

[mtVolume40]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>39)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol40#][!RainmeterSetVariable Vol 40]

[mtVolume39]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>38)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol39#][!RainmeterSetVariable Vol 39]

[mtVolume38]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>37)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol38#][!RainmeterSetVariable Vol 38]

[mtVolume37]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>36)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol37#][!RainmeterSetVariable Vol 37]

[mtVolume36]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>35)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol36#][!RainmeterSetVariable Vol 36]

[mtVolume35]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>34)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol35#][!RainmeterSetVariable Vol 35]

[mtVolume34]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>33)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol34#][!RainmeterSetVariable Vol 34]

[mtVolume33]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>32)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol33#][!RainmeterSetVariable Vol 33]

[mtVolume32]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>31)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol32#][!RainmeterSetVariable Vol 32]

[mtVolume31]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>30)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol31#][!RainmeterSetVariable Vol 31]

[mtVolume30]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>29)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol30#][!RainmeterSetVariable Vol 30]

[mtVolume29]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>28)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol29#][!RainmeterSetVariable Vol 29]

[mtVolume28]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>27)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol28#][!RainmeterSetVariable Vol 28]

[mtVolume27]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>26)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol27#][!RainmeterSetVariable Vol 27]

[mtVolume26]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>25)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol26#][!RainmeterSetVariable Vol 26]

[mtVolume25]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>24)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol25#][!RainmeterSetVariable Vol 25]

[mtVolume24]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>23)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol24#][!RainmeterSetVariable Vol 24]

[mtVolume23]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>22)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol23#][!RainmeterSetVariable Vol 23]

[mtVolume22]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>21)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol22#][!RainmeterSetVariable Vol 22]

[mtVolume21]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>20)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol21#][!RainmeterSetVariable Vol 21]

[mtVolume20]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>19)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol20#][!RainmeterSetVariable Vol 20]

[mtVolume19]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>18)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol19#)][!RainmeterSetVariable Vol 19]

[mtVolume18]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>17)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol18#][!RainmeterSetVariable Vol 18]

[mtVolume17]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>16)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol17#][!RainmeterSetVariable Vol 17]

[mtVolume16]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>15)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol16#][!RainmeterSetVariable Vol 16]

[mtVolume15]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>14)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol15#][!RainmeterSetVariable Vol 15]

[mtVolume14]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>13)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol14#][!RainmeterSetVariable Vol 14]

[mtVolume13]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>12)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol13#][!RainmeterSetVariable Vol 13]

[mtVolume12]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>11)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol12#][!RainmeterSetVariable Vol 12]

[mtVolume11]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>10)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol11#][!RainmeterSetVariable Vol 11]

[mtVolume10]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>9)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol10#][!RainmeterSetVariable Vol 10]

[mtVolume9]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>8)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol9#][!RainmeterSetVariable Vol 9]

[mtVolume8]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>7)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol8#][!RainmeterSetVariable Vol 8]

[mtVolume7]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>6)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol7#][!RainmeterSetVariable Vol 7]

[mtVolume6]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>5)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol6#][!RainmeterSetVariable Vol 6]

[mtVolume5]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>4)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol5#][!RainmeterSetVariable Vol 5]

[mtVolume4]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>3)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol4#][!RainmeterSetVariable Vol 4]

[mtVolume3]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>2)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol3#][!RainmeterSetVariable Vol 3]


[mtVolume2]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>1)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol2#][!RainmeterSetVariable Vol 2]

[mtVolume1]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>0)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol1#][!RainmeterSetVariable Vol 1]

[mtVolume0]
	Meter=Image
	SolidColor=FFFFFFFF
	X=7
	Y=0R
	W=5
	H=((#Clicks#>=0)?[msClicks]:0)
	DynamicVariables=1
	LeftMouseUpAction=!Execute ["#NirCmdPath#" setsysvolume 

#Vol0#)][!RainmeterSetVariable Vol 0]
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Volume Slider v1.30

Post by JpsCrazy »

After quite awhile, I'm finishing up Volume Slider 2.0.

It's everything before, plus:
-Test volume button
-Volume Mixer shortcut
-Hide slider button
-Easily changable clicks (0-50)
-Better code

Before I put on the finishing touches and upload, any more suggestions?
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Volume Slider v1.30

Post by JpsCrazy »

Newest version up!
Details on the original post.
Any questions, feel free to ask.
Any suggestions are more than appreciated.

Also, I'm looking for someone to help me code sections for the Win7 Audio Plugin. It's a bit problematic trying to test code for the Win7 plugin seeing as I'm still stuck at WinXP.
It's more of a 'Here, try this:' than 'Okay, tell me what to do.'
I won't need much help writing the code, although it would be helpful if you knew what was going on.
All/any help is greatly appreciated.
User avatar
jsmorley
Developer
Posts: 21552
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Volume Slider v1.30

Post by jsmorley »

JpsCrazy wrote:Newest version up!
Details on the original post.
Any questions, feel free to ask.
Any suggestions are more than appreciated.

Also, I'm looking for someone to help me code sections for the Win7 Audio Plugin. It's a bit problematic trying to test code for the Win7 plugin seeing as I'm still stuck at WinXP.
It's more of a 'Here, try this:' than 'Okay, tell me what to do.'
I won't need much help writing the code, although it would be helpful if you knew what was going on.
All/any help is greatly appreciated.
I will be glad to test a skin using the win7 audio plugin if you want.
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Volume Slider v1.30

Post by JpsCrazy »

jsmorley wrote:I will be glad to test a skin using the win7 audio plugin if you want.
Thanks! :D
I'll get working on it soon.
I'll probably make a mock skin just to see how it works and such, and just adapt it to this.
User avatar
jsmorley
Developer
Posts: 21552
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Volume Slider v1.30

Post by jsmorley »

JpsCrazy wrote: Thanks! :D
I'll get working on it soon.
I'll probably make a mock skin just to see how it works and such, and just adapt it to this.
There is an entire sample skin included in the documentation for the plugin on the main site.
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Volume Slider v2.00

Post by JpsCrazy »

Just an update,
I've finished the test skin for the Win7Audio Plugin version.
It's just waiting to be tested...

Until then, here's what else is going on:
-Using the new 'groups' capabilities to simplify code
-Mouseover a certain section to see the volume in percent using tooltips
-Fix a few problems with hiding/showing images.
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Volume Slider v2.00

Post by JpsCrazy »

I 'finished' making a test skin for the volume slider with Win7 compatability awhile back, but it hasn't been tested yet.
ONLY test if you're using Win7.

http://rapidshare.com/files/417357281/VolumeSlider.zip
It requires the new audio plugin which should be installed while going through the rainstaller.
Thanks to anyone who tests it!

If something doesn't work/you have suggestions just let me know and I'll be sure to work on it.
No Rainmeter experience is really needed, but defiantely helps.
Thanks!