473,395 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

You know the default error beep in windows? How exactly do you dothat?

mrw
I was wondering how you create that default error beep that you dear
when say you go to start, then run, and type in a bad filename. You
here a specific sound.

It must be some type of API or something, right? Since that sound can
be changed to whatever you want and the new sound will still play. That
to me tells me that it isn't just code that plays a sound but some API
call to the "Asterisk" sound which then points to the whatever .wav file
that you have setup through the control panel.
Thanks in advance,
mrw
Jul 22 '05 #1
4 1781
Off-topic.

Jul 22 '05 #2
mrw wrote:
I was wondering how you create that default error beep that you dear
when say you go to start, then run, and type in a bad filename. You
here a specific sound.

It must be some type of API or something, right? Since that sound can
be changed to whatever you want and the new sound will still play.
That to me tells me that it isn't just code that plays a sound but
some API call to the "Asterisk" sound which then points to the
whatever .wav file that you have setup through the control panel.


This is off topic here, but I'm feeling generous:

PlaySound("SystemAsterisk", NULL, SND_ALIAS | SND_SYNC);

http://msdn.microsoft.com/library/en...e_registry.asp
(watch out for URL wrapping)

--
Unforgiven

"Most people make generalisations"
Freek de Jonge
Jul 22 '05 #3

"Unforgiven" <ja*******@hotmail.com> wrote in message
news:br************@ID-136341.news.uni-berlin.de...
mrw wrote:
I was wondering how you create that default error beep that you dear
when say you go to start, then run, and type in a bad filename. You
here a specific sound.

It must be some type of API or something, right? Since that sound can
be changed to whatever you want and the new sound will still play.
That to me tells me that it isn't just code that plays a sound but
some API call to the "Asterisk" sound which then points to the
whatever .wav file that you have setup through the control panel.


This is off topic here, but I'm feeling generous:

PlaySound("SystemAsterisk", NULL, SND_ALIAS | SND_SYNC);


Or even shorter:

MessageBeep(MB_ICONASTERISK);

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl

Jul 22 '05 #4
On Sat, 13 Dec 2003 15:41:15 +0100, Peter van Merkerk wrote:

"Unforgiven" <ja*******@hotmail.com> wrote in message
news:br************@ID-136341.news.uni-berlin.de...

This is off topic here, but I'm feeling generous:

PlaySound("SystemAsterisk", NULL, SND_ALIAS | SND_SYNC);


Or even shorter:

MessageBeep(MB_ICONASTERISK);


And you both made sure that next time he will still post his offtopic
questions here, since he has learned that he gets an answer without doing
the hard work of figuring out the appropriate place to ask.

--
NPV

"the large print giveth, and the small print taketh away"
Tom Waits - Step right up

Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Leo | last post by:
hi there i want python to do a beep. in the docu i found in tkinter the method bell() but the script: import Tkinter Tkinter.bell() gives the error:
5
by: Nothing | last post by:
Is there a way to turn off the defult menu bar? I do not want the user to see the File, Edit, View, etc. menu. How do you turn it off? Michael Charney *** Sent via Developersdex...
5
by: richard | last post by:
I have a licensed MS Office 97 package which I have moved from PC to PC over the years and I have just bought a new machine with XP Pro on it, the latest release. When I install Office, I get the...
8
by: MLH | last post by:
What's the default declaration if Public/Private is ommited from the Sub statement in an Access 97 procedure?
1
by: thetuckers_jersey | last post by:
I have inherited an Access database with a SQL backend and need to run a daily report. When I try to run this report which calls stored procedures, I get the following VB error message : Run-time...
11
by: MLH | last post by:
I copied the following code snippet from A97 HELP. Am getting an error at compile time suggesting there's a problem with the first line (compile error, user-defined type not defined). It is likely...
3
by: Thom Little | last post by:
The following code will produce a sound in C# ... using System.Runtime.InteropServices; Beep( 500, 500 ); private static extern bool Beep( int freq, int dur ); How can I play the sound...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
When I press the Enter key in a Textbox I get a beep sound. But when I press the Enter key in a combobox, I don't get the beep sound. Is there a way to suppress the beep? How to do this? ...
6
by: =?Utf-8?B?VmVybm9uIFBlcHBlcnM=?= | last post by:
I have an application that is designed for using with a bar code scanner. I want the user to know that the scan was complete and the data was entered, so I am playing a system sound after data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.