"dreamer" <no****@nowhere.com.au> wrote in message
news:g8********************************@4ax.com...
I am making a program for a friend with a disability.
I need to adjust his audio volume using the keyboard as he cannot use
a mouse.
Any suggestions as to how I can raise the volume using the up arrow on
the keyboard and decrease the volume using the down arrow?
I am using VB 5.
Many thanks in advance.
I am not sure if you need to do anything special. The volume control app
(Accesories => Volume Control) works exactly the way you want it. When the
focus is on the balance, left right arrows move the balance accordingly.
When the focus is on the volume slider, the up and down arrows works
intuitively as well.
I am not a proponent on taking over the system's setting unless you will
restore it on the way out.
If you insist on doing it programatically, you'll need to use the multimedia
mixer control api (winmm.dll).