zachary1337 Posted August 25, 2014 Report Posted August 25, 2014 Nu imi mai apare Captcha in PictureBox , pana acum am reusit , acum nu mai vrea nicicumam bagat un web , picturebox si nimic ... nu mai apare Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted 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 Quote
Viral-One Posted August 25, 2014 Report Posted August 25, 2014 Te compici prea mult...PictureBox1.Load(WebBrowser1.Document.GetElementById("recaptcha_challenge_image").GetAttribute("src"))Si daca vrei tu sa apara cand se incarca complet WebBrowser-ulPrivate Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then PictureBox1.Load(WebBrowser1.Document.GetElementById("recaptcha_challenge_image").GetAttribute("src")) Else End If End Sub 1 Quote
zachary1337 Posted August 25, 2014 Author Report Posted August 25, 2014 Te compici prea mult...PictureBox1.Load(WebBrowser1.Document.GetElementById("recaptcha_challenge_image").GetAttribute("src"))Si daca vrei tu sa apara cand se incarca complet WebBrowser-ulPrivate Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then PictureBox1.Load(WebBrowser1.Document.GetElementById("recaptcha_challenge_image").GetAttribute("src")) Else End If End Subam vrut sa bag asa dar am vrut sa bag captcha de pe google ca acolo e numeric si e mai usor asta cu litere incalcite , da am luat de pe alt site , mersi Quote