|
-
Jan 14th, 2012, 09:13 AM
#1
Thread Starter
New Member
-
Jan 14th, 2012, 09:23 PM
#2
New Member
Re: Mute sound of application only?
Well, you can easly disabled the 'click'-sound with some registry edit.
Disable:
Code:
Public Sub DisableSound()
Dim keyValue As String
keyValue = "%SystemRoot%\Media\"
If Environment.OSVersion.Version.Major = 5 AndAlso Environment.OSVersion.Version.Minor > 0 Then
keyValue += "Windows XP Start.wav"
ElseIf Environment.OSVersion.Version.Major = 6 Then
keyValue += "Windows Navigation Start.wav"
Else
Return
End If
Dim key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("AppEvents\Schemes\Apps\Explorer\Navigating\.Current", True)
key.SetValue(Nothing, "", Microsoft.Win32.RegistryValueKind.ExpandString)
End Sub
Enable:
Code:
Public Sub EnableSound()
Dim keyValue As String
keyValue = "%SystemRoot%\Media\"
If Environment.OSVersion.Version.Major = 5 AndAlso Environment.OSVersion.Version.Minor > 0 Then
keyValue += "Windows XP Start.wav"
ElseIf Environment.OSVersion.Version.Major = 6 Then
keyValue += "Windows Navigation Start.wav"
Else
Return
End If
Dim key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("AppEvents\Schemes\Apps\Explorer\Navigating\.Current", True)
key.SetValue(Nothing, keyValue, Microsoft.Win32.RegistryValueKind.ExpandString)
End Sub
Then just run the "DisableSound()" function on WebBrowser_Navigating and "EnableSound()" on WebBrowser_DocumentCompleted.

Hope this helps.
-
Jan 15th, 2012, 01:55 PM
#3
Thread Starter
New Member
Re: Mute sound of application only?
 Originally Posted by Merko
Well, you can easly disabled the 'click'-sound with some registry edit.
Disable:
Code:
Public Sub DisableSound()
Dim keyValue As String
keyValue = "%SystemRoot%\Media\"
If Environment.OSVersion.Version.Major = 5 AndAlso Environment.OSVersion.Version.Minor > 0 Then
keyValue += "Windows XP Start.wav"
ElseIf Environment.OSVersion.Version.Major = 6 Then
keyValue += "Windows Navigation Start.wav"
Else
Return
End If
Dim key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("AppEvents\Schemes\Apps\Explorer\Navigating\.Current", True)
key.SetValue(Nothing, "", Microsoft.Win32.RegistryValueKind.ExpandString)
End Sub
Enable:
Code:
Public Sub EnableSound()
Dim keyValue As String
keyValue = "%SystemRoot%\Media\"
If Environment.OSVersion.Version.Major = 5 AndAlso Environment.OSVersion.Version.Minor > 0 Then
keyValue += "Windows XP Start.wav"
ElseIf Environment.OSVersion.Version.Major = 6 Then
keyValue += "Windows Navigation Start.wav"
Else
Return
End If
Dim key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("AppEvents\Schemes\Apps\Explorer\Navigating\.Current", True)
key.SetValue(Nothing, keyValue, Microsoft.Win32.RegistryValueKind.ExpandString)
End Sub
Then just run the "DisableSound()" function on WebBrowser_Navigating and "EnableSound()" on WebBrowser_DocumentCompleted.

Hope this helps.
Thanks but what I need to do is to disable the sound webbrowser makes on youtube. I mean the youtube videos needs to be muted somehow.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|