Program or script to change volume...?
I need (or rather want) a program, in either Java or VBs (if there's a better one like Python or something, that would be alright too) to change the volume of a Windows computer.
It would also be a good showcase of your skills to make it able to change the volume of a specific program or application.
The way I intend to use it is as if it were a function, rather than a program. So a different script will activate it (perhaps by writing it, which in Java I don't think is possible) and then set the volume and the program to change the volume of. If that can't be achieved, could it be made to read a text file (or something else) with two lines on it; the first the program, the second the volume. If the first line says something like none, It would change the volume of the whole computer.
Hopefully I've given you a good enough description to make it clear exactly what to do. Thank you in advance.


















![How to freak out your friends (with their computer) [Tricks and Fun Volume 1]](http://www.instructables.com/files/deriv/FKC/BNGB/FSSIUKAD/FKCBNGBFSSIUKAD.SQUARE.jpg)











Visit Our Store »
Go Pro Today »




As you already know I'm more familiar with C. So I wrote a small program for you in C and WinAPI. It's quick'n'dirty since it does nothing but emulating the multimedia keys on your keyboard.
Of course I attached the C source code as well. You can download "mmctrl.zip" here.
For additional information how it works check out
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646310(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
In windows 7, you can adjust master volume, as well as the individual volumes of any other programs separately. Clicking on the volume icon in the system tray (bottom right, looks like a speaker) should bring up the volume. Right click/playback should show all programs.