Download Horizon :: Staff Members :: TheTechGame.com :: XboxMB YouTube


Old 02-04-2012   #1 (permalink)
Regular Member
 
Join Date: Jul 2011
Posts: 27
Default Remove Web browser click

So I have my login system set up using a browser and its hidden. Is there any possable way to stop the browser click noise? Here's what kind of code Im using:
Code:
        WebBrowser1.Document.GetElementById("login").SetAttribute("value", user.Text)
        WebBrowser1.Document.GetElementById("password").SetAttribute("value", password.Text)
        If WebBrowser1.Document.GetElementById("submit").InvokeMember("click") Then
        End If
        DelayApp()
        If WebBrowser1.DocumentText.Contains("Welcome") Then
            MsgBox("logged in")
            RibbonTabItem3.Text = user.Text
            Online.Select
        Else
            MsgBox("Error")
            WebBrowser1.Navigate("WWW.WEBSITEHERE.COM/LOGIN.PHP")
        End If
Thanks for your time.
TyHi is offline
Reply With Quote


Old 02-04-2012   #2 (permalink)

FC Barcelona's Avatar
:|
Join Date: Jul 2010
Location: Over The Horizon ;)
Posts: 5,249
Thanks: 2,375
Default Re: Remove Web browser click

Use webrequest. don't use webbrowser.
__________________
FC Barcelona is offline Send a message via AIM to FC Barcelona
Reply With Quote
The following users thanked this post: sgt frankieboy, TyHi


Old 02-04-2012   #3 (permalink)
Regular Member
 
Join Date: Jul 2011
Posts: 27
Default Re: Remove Web browser click

Thanks!

If you have time could you help me convert my old script to webrequest? If not it's ok!
TyHi is offline
Reply With Quote


Old 02-05-2012   #4 (permalink)
CLK
CLK's Avatar
Join Date: Sep 2010
Location: Spokane, WA
Posts: 1,413
Thanks: 1,222
Default Re: Remove Web browser click

You can't disable the click because it's a component of Internet Explorer. The user would need to disable the click noise globally themselves.

Disable Click Sound from IE in Vista and Windows 7
__________________
CLK is offline
Reply With Quote


Old 02-05-2012   #5 (permalink)
Cheater912's Avatar
:D
Join Date: Jul 2010
Location: New York
Posts: 5,683
Thanks: 12,225
Default Re: Remove Web browser click

Mute their speakers without them knowing.




__________________
Cheater912 is offline Send a message via Skype™ to Cheater912
Reply With Quote
The following users thanked this post: Austin, Hetelek, j0shh0a, Jeremy Q, RDCA, Rhyme, sgt frankieboy




Old 02-05-2012   #6 (permalink)
Regular Member
 
Join Date: Jul 2011
Posts: 27
Default Re: Remove Web browser click

This is what I ended up using: (Enable Sound after disable)

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 RegistryKey = Registry.CurrentUser.OpenSubKey("AppEvents\Schemes\Apps\Explorer\Navigating\.Current", True)
        key.SetValue(Nothing, keyValue, RegistryValueKind.ExpandString)
    End Sub
So then on form load it would be:

Code:
DisableSound()
This is to disable the sound:

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 RegistryKey = Registry.CurrentUser.OpenSubKey("AppEvents\Schemes\Apps\Explorer\Navigating\.Current", True)
        key.SetValue(Nothing, "", RegistryValueKind.ExpandString)
    End Sub

Last edited by TyHi; 02-05-2012 at 08:36 AM.
TyHi is offline
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:28 AM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2012 - XboxMB - DESIGN BY:
EDENWEBS.COM