Add Volume Control to your AMS Menu
Like forum member, dallasfreak, I am sure others have wondered if it is possible to control the sound volume from an AMS menu when playing a sound file.
Well, I did a little research on the Windows' SNDVOL32.EXE and here's what I discovered...
To display the little (slider) "volume control" in your menu just like the one that shows when you click the speaker icon in the system tray, add the following commands to a "Text or Image Object."
For Win9x OS:
(For newbies, select Properties for text or image object. Then, select "! Actions | Mouse Click | > Execute | Execute Program and enter the below commands)
File Name: %WinDir%\SndVol32.exe
Arguments: DOSCommand "[WindowsDir]\sndvol32.exe" " "/tray" "Normal"
Working Dir: %WinDir%
I tested the above commands on my Win98 OS using a simple text ("Volume") object and it worked like a charm. These commands will probably work with WinME as well since its file system and kernel is pretty much the same as Win98.
I did not test the commands with WinNT or 2000. However, below is the commandline (Arguments) for WinNT:
DOSCommand "C:\WINNT\system32\sndvol32.exe" " "/tray" "Normal"
Maybe our trusty moderators, Adam or Mark, or someone else can test this commandline and give us some feedback.
The nice thing about the volume control is that it pops up right where the mouse-click occurs. Thus, it behaves like an integral part of your menu!
Here are the parameter options:
(full size mixer)
\sndvol32.exe" " "Normal"
(small mixer)
\sndvol32.exe" " "/small" "Normal"
(little master volume)
\sndvol32.exe" " "/tray" "Normal"
[This message has been edited by eljay (edited 05-31-2001).]
[This message has been edited by eljay (edited 05-31-2001).]
Like forum member, dallasfreak, I am sure others have wondered if it is possible to control the sound volume from an AMS menu when playing a sound file.
Well, I did a little research on the Windows' SNDVOL32.EXE and here's what I discovered...
To display the little (slider) "volume control" in your menu just like the one that shows when you click the speaker icon in the system tray, add the following commands to a "Text or Image Object."
For Win9x OS:
(For newbies, select Properties for text or image object. Then, select "! Actions | Mouse Click | > Execute | Execute Program and enter the below commands)
File Name: %WinDir%\SndVol32.exe
Arguments: DOSCommand "[WindowsDir]\sndvol32.exe" " "/tray" "Normal"
Working Dir: %WinDir%
I tested the above commands on my Win98 OS using a simple text ("Volume") object and it worked like a charm. These commands will probably work with WinME as well since its file system and kernel is pretty much the same as Win98.
I did not test the commands with WinNT or 2000. However, below is the commandline (Arguments) for WinNT:
DOSCommand "C:\WINNT\system32\sndvol32.exe" " "/tray" "Normal"
Maybe our trusty moderators, Adam or Mark, or someone else can test this commandline and give us some feedback.

The nice thing about the volume control is that it pops up right where the mouse-click occurs. Thus, it behaves like an integral part of your menu!

Here are the parameter options:
(full size mixer)
\sndvol32.exe" " "Normal"
(small mixer)
\sndvol32.exe" " "/small" "Normal"
(little master volume)
\sndvol32.exe" " "/tray" "Normal"
[This message has been edited by eljay (edited 05-31-2001).]
[This message has been edited by eljay (edited 05-31-2001).]
Comment