Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How BEEP on internal speakers, not on sound-card?

How can I sound (beep) the pc internal speaker without the soundcard-out?
Using VBA in MS Excel under Win98se?

Like to warn Excel-user, not the whole room playing online radio.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How BEEP on internal speakers, not on sound-card?

The beep command doesn't work?

the help says:

Sounds a tone through the computer's speaker.

--
Regards,
Tom Ogilvy


"Michel" wrote in message
om...
How can I sound (beep) the pc internal speaker without the soundcard-out?
Using VBA in MS Excel under Win98se?

Like to warn Excel-user, not the whole room playing online radio.

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How BEEP on internal speakers, not on sound-card?

Hi

A search on this
http://makeashorterlink.com/?D24E42426
showed among lots of things this:

" In VB, the Beep function calls the Windows Exclamation sound, so if you
have a sound card driver installed, the sound will be emitted by the
sound card.

" If your app is being run under WinNT4, Win2000, or WinXP, you can use the
Beep API function to play a sound using the internal speaker. Win9x does
not support this (like VB's Beep statement, the Beep API function under
Win9x only plays the Default Sound .wav file).

Private Declare Function Beep Lib _
"kernel32" (ByVal dwFreq As Long, _
ByVal dwDuration As Long) As Long

Sub BeepMe()

Dim frequency As Long
Dim duration As Long

frequency = 1600
duration = 500

Call Beep(frequency, duration)

End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Tom Ogilvy" wrote in message ...
The beep command doesn't work?

the help says:

Sounds a tone through the computer's speaker.

--
Regards,
Tom Ogilvy


"Michel" wrote in message
om...
How can I sound (beep) the pc internal speaker without the soundcard-out?
Using VBA in MS Excel under Win98se?

Like to warn Excel-user, not the whole room playing online radio.

Thanks.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How BEEP on internal speakers, not on sound-card?

thanks for these answers,
So there isn't any way to beep the internal speaker of the PC from
within Excel-VBA if you have win98 ?!
:-(

"Harald Staff" wrote in message ...
Hi

A search on this
http://makeashorterlink.com/?D24E42426
showed among lots of things this:

" In VB, the Beep function calls the Windows Exclamation sound, so if you
have a sound card driver installed, the sound will be emitted by the
sound card.

" If your app is being run under WinNT4, Win2000, or WinXP, you can use the
Beep API function to play a sound using the internal speaker. Win9x does
not support this (like VB's Beep statement, the Beep API function under
Win9x only plays the Default Sound .wav file).

Private Declare Function Beep Lib _
"kernel32" (ByVal dwFreq As Long, _
ByVal dwDuration As Long) As Long

Sub BeepMe()

Dim frequency As Long
Dim duration As Long

frequency = 1600
duration = 500

Call Beep(frequency, duration)

End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How BEEP on internal speakers, not on sound-card?

I found a internal speaker driver for win98:
http://support.microsoft.com/?kbid=138857

but it doesn't seem to work on my pc! Altough I don't get an error
under the system-hardware-cofiguration, when I go to the property
settings, the test-button is disabled. Booting into DOS is the only
way so far I can heer the beep on the internal speakers! There should
be some assembler (debug) code to do this, but what?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beep on greater than zero TaylorLeigh New Users to Excel 1 September 29th 08 11:14 PM
how to add sound ( beep ) if cell content changes in live data Bhavana Excel Discussion (Misc queries) 1 August 28th 08 07:55 PM
BEEP ziad Excel Discussion (Misc queries) 5 December 28th 07 03:56 PM
Beep Change The Sound Bob Excel Discussion (Misc queries) 0 July 6th 06 11:56 PM
On template Bus. Card How to make one Card into all 10 cards George, Bus. Cards Setting up and Configuration of Excel 1 March 7th 06 08:09 PM


All times are GMT +1. The time now is 11:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"