473,765 Members | 2,224 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ring a bell?

Is there a way in Mozilla/Firefox to ring the bell? For example, in
Emacs or Notepad (on my Win XP Pro system) if you enter certain
shortcuts (e.g. ^g or ^q, respectively), you get a sound to let you
know that from the app's point of view, something unexpected happened.
Can I accomplish something similar in FF with javascript or via the
keyboard?

Thanks,
Csaba Gabor from Vienna

Apr 20 '06 #1
6 6855
Csaba Gabor wrote:
Is there a way in Mozilla/Firefox to ring the bell? For example, in
Emacs or Notepad (on my Win XP Pro system) if you enter certain
shortcuts (e.g. ^g or ^q, respectively),
With Emacs -- possible. I doubt that Notepad recognizes a BEL character
(that can be produced with C-g on standard input) to play the bell sound
through the internal PC speaker, but then I have not used Windows
eXPeriment much, and I never hat good reason to try this on Windows 2000.
you get a sound to let you know that from the app's point of view,
something unexpected happened.
Fortunately for the common user, no such unnerving thing usually happens
in a Web browser.
Can I accomplish something similar in FF with javascript or via the
keyboard?


You could play a media resource, and you would have to make sure that
speakers are powered on and their volume is set high enough for you to
hear.

You would need to make sure that an internal PC speaker is there, that it
is enabled and that its volume is set high enough for you to hear anyway.

Your question was rated: Straynge. [psf 4.15]
PointedEars
Apr 20 '06 #2
Thomas 'PointedEars' Lahn said the following on 4/20/2006 9:51 AM:
Csaba Gabor wrote:
<snip>
you get a sound to let you know that from the app's point of view,
something unexpected happened.


Fortunately for the common user, no such unnerving thing usually happens
in a Web browser.


I disagree. I can do some very unnerving things with sounds in IE. Even
without speakers. But I can't claim credit to it, Jim Ley was the first
place I saw the code.
Can I accomplish something similar in FF with javascript or via the
keyboard?


You could play a media resource, and you would have to make sure that
speakers are powered on and their volume is set high enough for you to
hear.
You would need to make sure that an internal PC speaker is there, that it
is enabled and that its volume is set high enough for you to hear anyway.


Again, not true in IE at least which is a predominant part of the web
audience.

Your question was rated: Straynge. [psf 4.15]


Your answer was rated: Wrong.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 20 '06 #3
Randy Webb wrote:
Thomas 'PointedEars' Lahn said the following on 4/20/2006 9:51 AM:
Csaba Gabor wrote:

<snip>
you get a sound to let you know that from the app's point of view,
something unexpected happened.


Fortunately for the common user, no such unnerving thing usually happens
in a Web browser.


I disagree. I can do some very unnerving things with sounds in IE. Even
without speakers. But I can't claim credit to it, Jim Ley was the first
place I saw the code.


Randy, would you mind posting a link or a sample, please.
Can I accomplish something similar in FF with javascript or via the
keyboard?

I just found a way:
On the keyboard I enter: alt,f,q,escape
Upon the press of the q, since it is not mapped to anything on my US
menu system, the bell is rung (the "thunk" sounding one). The escape
is for cleanup. Indeed, if I synthesize these events via javascript,
the bell is still rungm which is exactly what I wanted.

However, my synthesis is done within the GreaseMonkey chrome (that is
to say, GreaseMonkey.js ). One of the bug fixes to FF 1.5.0.2 was that
it now allows keyboard events to be synthesized and thus place
characters into text controls
(https://bugzilla.mozilla.org/show_bug.cgi?id=303713). However,
control and alt combinations, along with movement keys (arrows, home,
end, etc) are not allowed so a web page creator cannot use the above
technique to his advantage.
You could play a media resource, and you would have to make sure that
speakers are powered on and their volume is set high enough for you to
hear.
You would need to make sure that an internal PC speaker is there, that it
is enabled and that its volume is set high enough for you to hear anyway.


Again, not true in IE at least which is a predominant part of the web
audience.


In addition, when IE displays an alert box, a (different sounding) bell
is rung.
Your question was rated: Straynge. [psf 4.15]


Your answer was rated: Wrong.


Apr 20 '06 #4
Csaba Gabor wrote:
Randy Webb wrote:
Thomas 'PointedEars' Lahn said the following on 4/20/2006 9:51 AM:
> You could play a media resource, and you would have to make sure that
> speakers are powered on and their volume is set high enough for you to
> hear.
> You would need to make sure that an internal PC speaker is there, that
> it is enabled and that its volume is set high enough for you to hear
> anyway.
Again, not true in IE at least which is a predominant part of the web
audience.


Yes, it is true. Without speaker(s), without speaker(s) turned on or
without having its/their volume set high enough, you will not hear
anything.
In addition, when IE displays an alert box, a (different sounding) bell
is rung.


That is a Waveform _system sound_, usually _not_ the sound a BEL character
makes when played through the internal PC speaker (although there is a
driver for that). It has nothing to do with IE or not, but is set up
via the control panel (for example as Asterisk sound) for all Windows
applications; IE simply makes use of that setting. Obviously both of
you have no clue what you are talking about.
PointedEars
Apr 20 '06 #5
Csaba Gabor said the following on 4/20/2006 1:01 PM:
Randy Webb wrote:
Thomas 'PointedEars' Lahn said the following on 4/20/2006 9:51 AM:
Csaba Gabor wrote:

<snip>
you get a sound to let you know that from the app's point of view,
something unexpected happened.
Fortunately for the common user, no such unnerving thing usually happens
in a Web browser.

I disagree. I can do some very unnerving things with sounds in IE. Even
without speakers. But I can't claim credit to it, Jim Ley was the first
place I saw the code.


Randy, would you mind posting a link or a sample, please.


<BODY>
<OBJECT id=DACtl CLASSID="CLSID: B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"
style="height:1 ;width:1;top:0; left:0;"></OBJECT>
<SCRIPT>
m = DACtl.MeterLibr ary;
snd = m.SinSynth.Rate (800); // 800khz sine wave.
snd2=snd.RateAn im(m.Add(m.DANu mber(3),m.Cos(m .localTime)));
snd3=snd.RateAn im(m.Div(m.Sin( m.localTime),m. Cos(m.localTime )));
DACtl.Sound = snd3;
// change snd to snd2 and snd3 for more interesting sounds.
DACtl.image = m.solidColorIma ge(m.White);
DACtl.Start();
</SCRIPT>
</Body>

<URL: http://jibbering.com/directanimation/sound.html >

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 21 '06 #6
Thomas 'PointedEars' Lahn said the following on 4/20/2006 2:10 PM:
Csaba Gabor wrote:
Randy Webb wrote:
Thomas 'PointedEars' Lahn said the following on 4/20/2006 9:51 AM:
You could play a media resource, and you would have to make sure that
speakers are powered on and their volume is set high enough for you to
hear.
You would need to make sure that an internal PC speaker is there, that
it is enabled and that its volume is set high enough for you to hear
anyway.
Again, not true in IE at least which is a predominant part of the web
audience.

Yes, it is true.


No Thomas, it is not true.
Without speaker(s), without speaker(s) turned on or without having its/their
volume set high enough, you will not hear anything.


Nonsense.

<snipped utter nonsense from Thomas>

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 21 '06 #7

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

Similar topics

9
12241
by: Baza | last post by:
Am I right in thinking that >>>print "\a" should sound the system, 'bell'? B -- Computer says, 'no'
7
1997
by: Dave Hammond | last post by:
You'd think this was an occasionally asked question, but a search for previous related posts only turned up one from 1999, and that one was never anwered. So... When handling a keypress event, the terminal bell always rings (at least with Internet Explorer). While it's not a show-stopper, it can become annoying. Anyone have any tricks to silence the bell? Thanks in advance!
2
2316
by: MLH | last post by:
This question, I apologize, is more of a math question than it is an Access question - I'm almost certain. The bell curve is another name for the normal distribution, which is a common type of graph that has more or less the shape of a bell. "The Bell Curve" was also the title of a book, a controversial book back in 1994. It was about intelligence. If you graph scores on an IQ test on the horizontal axis, and number of people who got...
11
28882
by: Ben Collingsworth | last post by:
Anyone have some efficient source code for implementing a ring buffer?
17
5821
by: Yuri CHUANG | last post by:
Hi, I'm the beginner of the CPL.I write a program about the problem of Ring of Josephus,using DoubleLinkList data structure. I'm very confused that I think there is really no error in my code.But,the compiler sometimes show some strange errors,sometimes can pass through with an unknown trouble when it is running,and no result.So,could anyone give me some help? Thank you very much! Here is my code:...
3
13603
by: Josh | last post by:
I want to get the ASCII Bell character (7) as a string. How? I'm pulliing my hair out over the stupid little task. HELP!!!!!!!!! ARRRAGGH! -- #####-----#####-----##### POV Tips and Hints at ... http://povman.blogspot.com/
1
1142
by: Tom McL. | last post by:
How do I get the Clipboard Ring tab to display on the Toolbox? I can use the Clipboard Ring by using Ctrl+Shift+V. Thanks
1
3321
subashini Thiyagarajan
by: subashini Thiyagarajan | last post by:
hi, I don't know is this the right forum Please can anyone help me i need to reduce the incoming telephone ring volume in the Panasonic set not mobile set normal phone set.their is no physical buttons on the set.how to reduce the incoming ring noise through progamming in the sence on the set we do some program to minimize their is no manual available in net also searched . MODEL NO:Panasonic KX-TS15MX-W made in japan can anyone help...
0
3867
by: martinmercy2001 | last post by:
Could any body help me with creating a ring buffer class using a string. use memory circular buffer not an IO buffer. just read, write and seek method. Read method should take anumber and return the string. write method should take a string. seek should take a number and return nuthing. use three member variables a buffer itself as a string, read_position, write_position. use >>, << methods. I have tried this code but i need full...
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.