Wednesday, June 12, 2013

How to Get Captcha from browser into picturebox - [vb.net]



How to Get Captcha from browser into picturebox - [vb.net]

in this Tutorial i will teach you how to get captcha from any site example is below this is easy way to get recaptcha on picturebox this statement should be used in webbrowser document completed event. on error resume next is like try catch
What should you need?
A Brain
Visual Studio
Windows XP , Vista , 7 , 8
Add browser on Form
And a Picturebox where captcha is loaded
set picturebox automatically

   If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then
            For Each Captcha As HtmlElement In WebBrowser1.Document.Images
                On Error Resume Next
                If            Captcha.GetAttribute("src").Contains("http://www.google.com/recaptcha/api/image?") Then
                    PictureBox1.Load(Captcha.GetAttribute("src"))
                End If
            Next
        End If

Thanks For reading my tutorial please 1+ / Share this post if you like it


No comments:

Post a Comment