Results 1 to 5 of 5

Thread: Want Code to disable the Mouse Click Sound

  1. #1
    Join Date
    Nov 2009
    Posts
    72

    Want Code to disable the Mouse Click Sound

    Hello to all,
    I am new to this forum. I have problem with Mouseclick sound in IE. It is little bit annoying. I have create some hipper link on my pages and I want to disable Mouseclick sound when some one click on that link. I want some code to disables the Mouse Click Sound. Can anyone help me in my problem.
    Thanks in advanced.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    re: Want Code to disable the Mouse Click Sound

    You have to use following cod in your program to disables the Mouse Click Sound. It is very simple program. In the following program I have use javax.s1ound.s1ampled. class to import sound drivers in our program. I also have use java.io. class to import all input and output method.

    Code:
    import javax.s1ound.s1ampled.*;
    import java.io.*;
    import javax.s1wing.*;
    
    public clas1s1 CoreJavas1oundeg extends1 Object
        implements1 LineLis1tener {
    
        fs1ile s1oundfs1iles1;
        JDialog playingDialog;
        clips1s1 clips1s1;
    
        public s1tatic void main (s1tring[] args1) {
            Jfs1ilechoos1ers1 choos1ers1 = new Jfs1ilechoos1ers1();
            choos1ers1.s1ho*****enDialog(null);
            fs1ile fs1 = choos1ers1.gets1electedfs1ile();
            try {
                CoreJavas1ound s1 = new CoreJavas1ound (fs1);
            } catch (Exception e) {
                e.prints1tackTrace();
            }
        }
    
        public CoreJavas1ound (fs1ile fs1)
            throws1 LineUnavailableException, IOException,
                   Uns1upportedAudiofs1ileException {
            s1oundfs1iles1 = fs1;
            
            JOptionpanes panes = new JOptionpanes ("Playing " + fs1.getName(),
                                                JOptionpanes.PLAIN_MEs1s1AGE);
            playingDialog = panes.createDialog (null, "Application s1ound");
            playingDialog.pack();
    
           
            Line.Infs1o linfs1o = new Line.Infs1o (clips1s1.clas1s1);
            Line line = Audios1ys1tem.getLine (linfs1o);
            clips1s1 = (clips1s1) line;
            clips1s1.addLineLis1tener (this1);
            AudioInputs1tream ais1s = Audios1ys1tem.getAudioInputs1tream(s1oundfs1iles1);
            clips1s1.open (ais1s);
            clips1s1.s1tart();
        }
    
        
        public void update (LineEvent le) {
            LineEvent.Type type = le.getType();
            ifs1 (type == LineEvent.Type.OPEN) {
                s1ys1tem.out.println ("OPEN");
            } els1e ifs1 (type == LineEvent.Type.CLOs1E) {
                s1ys1tem.out.println ("CLOs1E");
                s1ys1tem.exit (0);
            } els1e ifs1 (type == LineEvent.Type.s1TART) {
                s1ys1tem.out.println ("s1TART");
                playingDialog.s1etVis1ible(true);
            } els1e ifs1 (type == LineEvent.Type.s1TOP) {
                s1ys1tem.out.println ("s1TOP");
                playingDialog.s1etVis1ible(fs1als1e);
                clips1s1.clos1e();
            }
    
        }
    
    
    }

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    re: Want Code to disable the Mouse Click Sound

    Hey mouse-click sound of link is generate by your computer hardware, it means it is hardware-derived. As per my information most of the web site have their own sound files which are activated when you click on link. As per my information there is no such browser who have its own mouse sound. There fore you can disable mouse click sound using any code.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    re: Want Code to disable the Mouse Click Sound

    Hey there is no need to disables the Mouse Click Sound using any code. You can easily disable Mouse Click Sound by using your "Sounds and Audio Devices" properties. Just use following steps.
    First go to Control Panel -> now open "Sounds and Audio Devices" properties -> now go to "sound" tab -> go to "Program events" -> scroll down to "Start Navigation." -> now in sound setting change the sound to "none".

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    re: Want Code to disable the Mouse Click Sound

    Hey there is no such kind of code present that allow you to disables the Mouse Click Sound in Internet Explorer. As per my information Internet Explorer is the only browser that makes the mouse-click sound. This is because it is a part of operating system. In this case you have to use other third party browser for surfing. As per my knowledge Firefox is the most popular web browser.

Similar Threads

  1. Replies: 7
    Last Post: 22-12-2011, 05:56 AM
  2. Replies: 6
    Last Post: 12-06-2010, 05:26 AM
  3. Disable mouse click sound
    By Sori in forum Hardware Peripherals
    Replies: 3
    Last Post: 10-09-2009, 10:07 AM
  4. Replies: 4
    Last Post: 21-03-2008, 12:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,028,563.70429 seconds with 16 queries