Jump to content

Disable Mouse click sounds


Recommended Posts

I have created a GUI with embedded IE, that automates navigation and mouseclicks on my website. however, I need to run this daily, but it is becoming annoying with all the mouseclick sounds. Is there a way to disable the sound within the script?

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

Link to comment
Share on other sites

nope on xp myself, but I was more interested in finding a way script side, since I might be passing this script on to some friends, and I can just see them complaining about the clicks while trying to listen to their favorite mp3's

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

Link to comment
Share on other sites

  • Moderators

You'll have to change the navigation.wav file as far as I know in the registry: http://capitalhead.com/articles/disable-click-sound-in-internet-explorer-ie-and-windows-7-x64-and-x86.aspx

( Or in the group policies )

Keep in mind, when you screw with someones registry, you'd better damn well know what you're doing!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Instead of $oSomeObject.click you do _SilentClick($oSomeObject):

Func _SilentClick($oObject)
    Local $sDefault = RegRead("HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current", "")
    RegWrite("HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current", "", "REG_EXPAND_SZ", "")
    $oObject.click
    RegWrite("HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current", "", "REG_EXPAND_SZ", $sDefault)
    Return 1
EndFunc

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

@SmOke_N, Your right, I don't do not want to mess with registries at this time, but thanks for the pointer, something to look at in the future!

@trancexx, thanks I will give that a try!

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

Link to comment
Share on other sites

  • 1 year later...

Here is my implementation on muting the "click" sounds within an embedded Internet Explorer object. Advanced scripters/coders might want to take a look at this to make sure nothing is wrong with the implementation/tidy up the code, but it seems to work fine for me. It took some googling to find.

EnableSilentClicks(True) ;True/False enables and disables the sounds.

Func EnableSilentClicks($b_Enabled)

    Local $DLL_URLMON = DllOpen("urlmon.dll")
    Local $i_Result = DllCall($DLL_URLMON, "int", "CoInternetSetFeatureEnabled", "int", 21, "dword", 2, "bool", $b_Enabled)
    If @error Then SetError(1, 1, 0)
    DllClose($DLL_URLMON)
    Return 1

EndFunc

Apologies for bumping a super old topic, but I figure this option should be here on the autoit forums for search junkies like me.

Resources:

MSDN on "CoInternetSetFeatureEnabled": http://msdn.microsoft.com/en-us/library/ms537168%28v=vs.85%29.aspx

Initial Google Search: http://www.hackcommunity.com/Thread-VB-Net-C-Disable-Sound-of-the-WebBrowser-Control

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...