Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to open the Volume Control popup directly without using the mouse or keyboard. Currently, I am using AutoHotkey to press Win+B to focus on the system tray, Left to highlight the Volume Control icon icon, and then Enter to bring up the popup.

volume control


I assume that this is possible, considering that you can open the View Available Networks window with

rundll32 van.dll,RunVAN

as opposed to using the Network icon icon.


Is there a way to invoke the Volume Control popup from the command prompt? Please note that I am not looking to use the Volume Mixer (sndvol):

volume mixer

share|improve this question

4 Answers 4

up vote 15 down vote accepted

sndvol.exe is what you want, you just need to use the -f flag to make it show just the master volume slider:

sndvol.exe -f

Running just sndvol.exe opens the volume mixer, as you noted.

share|improve this answer
    
+1 beat me by 9 secs :) –  Ellesa Jun 24 '12 at 1:01
    
The window isn't in its usual place, but I can move it to where I see fit with AutoHotkey. Thanks! –  iglvzx Jun 24 '12 at 1:04
    
@iglvzx Yeah, the window placement seems random, probably because it was not triggered by the notification area icon. Anyway, glad I could help. –  Indrek Jun 24 '12 at 1:05
    
Does Windows 7 still support the /s switch? –  Synetech Jun 24 '12 at 6:11
2  
> the window placement seems random It’s not random; new windows open by default one title-bars height to the right and below the previous one up to a point, then reset to the top-left. –  Synetech Jun 24 '12 at 6:14

Addendum:

As mentioned in my comment, using sndvol -f as per @Indrek's answer opens the Volume Control window in an unusual location, away from the system tray. Using AutoHotkey, we can make the popup appear where we see fit:

SetWinDelay, -1
Run, % "sndvol -f"
WinWaitActive, ahk_class #32770
WinMove, % A_ScreenWidth - 84, % A_ScreenHeight - 305 - 48

This script places the window at the bottom right of the screen. You can customize it to by changing the last line (WinMove).

screenshot

share|improve this answer

sndvol.exe allows you to specify window location by adding coordinates after -f switch:

sndvol.exe -f 26214900

This example creates window at x=500 y=400

coordinates = y * 65536 + x, where x and y - signed integers

BTW there is third command line parameter... may be handle?...

share|improve this answer
    
This is great. Where did you find documentation on sndvol.exe's -f parameter and the coordinates? All I find is this article that only mentions -R and -D. This article even has it on the secondary display. –  JohnB Jun 7 at 7:04
1  
@JohnB I didn't find documentation. I launched the Task Manager, saw sndvol's command line, and thought a little. :) –  CoolCmd Jun 7 at 19:16

On windows XP: Use sndvol32 as follows

sndvol32 no params to display master volume window

sndvol32 -x to display small master volume window

sndvol32 -t to display volume control only (as per sound icon)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.