I spent several hours scouring the web about this issue and found the module
"Win32::Sound" that is available via ppm from ActiveState.  Here is some
sample code to mute and unmute the volume.

use Win32::Sound;

Win32::Sound::Volume(0); # turn sound off
Win32::Sound::Volume(65535); # set sound to max volume

The module supports lots of other features.  The details can be found here:

http://www.xav.com/perl/site/lib/Win32/Sound.html


My question is how do I include or access modules (like this one) that do
not come with the default perl installion from ActiveState.

Tyler 





> -----Original Message-----
> From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, February 14, 2004 9:11 AM
> To: pommerer
> Cc: 'Unattended List (E-mail)'
> Subject: Re: [Unattended] how to disable sound
> 
> 
> "pommerer" <[EMAIL PROTECTED]> writes:
> 
> > how is it possible to disable/enable sound during installation
> > (base.bat)
> 
> Interesting question.
> 
> The best I can find is this VB script from Microsoft:
> 
    http://support.microsoft.com/?id=178456

I tried and failed to find a way to do this from Perl.  The problem is that
there is no COM interface for controlling the Windows Mixer; you need to
call functions inside winmm.dll (and I do not think rundll32 will work for
this).

 - Pat


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
unattended-info mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to