Jump to content
Sign in to follow this  
Realm

Disable Mouse click sounds

Recommended Posts

Realm

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.  

Share this post


Link to post
Share on other sites
clonetrooper9494

Using autoit there's nothing I can think of, but if you have vista or higher you can open the volume control and mute IE manually. Look in your task bar for an icon of a speaker, and try right/dbl clicking it, not sure which (on an XP right now but I know its on vista)

Share this post


Link to post
Share on other sites
Realm

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.  

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
trancexx

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

Share this post


Link to post
Share on other sites
Realm

@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.  

Share this post


Link to post
Share on other sites
IAmTheManYo

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.