It is currently May 3rd, 2024, 2:14 am

volume slider position?

Get help with creating, editing & fixing problems with skins
Alex Becherer

volume slider position?

Post by Alex Becherer »

i am running Windows 7.

i got rid of my taskbar/tray and have the tray/notification stuff in a Rainmeter skin. this also includes a bitmap meter for the current volume level. when i click on this meter i want to see the default Windows volume slider. i use this:

Code: Select all

ButtonCommand=!Execute [sndvol.exe -f]
so far, so good.

my problem is that the slider appears at the upper left of the screen. i would prefer it to appear under my meter instead.

any ideas for command line parameters or maybe a third party app?
User avatar
santa_ryan
Posts: 397
Joined: June 22nd, 2010, 4:11 am

Re: volume slider position?

Post by santa_ryan »

Here's a generalized autoit script I made.

Run the program for instructions on setup.

In your case the following would work fine...

Code: Select all

ExecuteThenMove.exe "%windir%\system32\sndvol.exe" "-f" "" "r" "r"
ExecuteThanMove.zip
You do not have the required permissions to view the files attached to this post.
I have three rules when I'm trying to help you.
  • Don't get mad when you don't understand something
  • Be VERY specific with what you ask for.
    The more specific you are, the higher the quality of support you receive.
  • Do not just copy and paste what I put in examples and come back saying it doesn't work.
    It does work, but I purposely left blanks that you need to fill for your specific needs.
Alex Becherer

Re: volume slider position?

Post by Alex Becherer »

thanks a lot for the executable.

unfortunately it does not work here. it actually moves the rainmeter config when i click on the button.
if i lauch it from a shortcut it moves the explorer window.

happens not only with sndvol.exe, but with calc.exe as well. about 1 out of 20 times it works as it should, so i guess it has a problem to determine which window to move.
User avatar
santa_ryan
Posts: 397
Joined: June 22nd, 2010, 4:11 am

Re: volume slider position?

Post by santa_ryan »

Alright... I updated the program to be a bit smarter.

Run the program without params or with the /help param to get detailed instructions.

The updated arguments code for the sndvol example is

Code: Select all

ExecuteThenMove.exe "/Execute:'%windir%\system32\sndvol.exe'" "/Params:-f"
A Rainmeter code example is as follows

Code: Select all

[Variables]
PathToProgram = C:\Users\Ryan\Documents\Rainmeter\Skins\TotalControl\Tools!\ExecuteThenMove\

[meter]
meter=IMAGE
x=0
y=0
w=100
h=100
solidcolor=255,255,255,255
LeftMouseUpAction=!Execute ["#PathToProgram#ExecuteThenMove.exe" "/Execute:'%windir%\system32\sndvol.exe'" "/Params:-f"]
You do not have the required permissions to view the files attached to this post.
I have three rules when I'm trying to help you.
  • Don't get mad when you don't understand something
  • Be VERY specific with what you ask for.
    The more specific you are, the higher the quality of support you receive.
  • Do not just copy and paste what I put in examples and come back saying it doesn't work.
    It does work, but I purposely left blanks that you need to fill for your specific needs.
Alex Becherer

Re: volume slider position?

Post by Alex Becherer »

cool! it works as it should. thanks a lot again!