[HELP]Captcha Problem!
I have a Captcha problem. Blubb1337 have helped me very much! He did get everything to work, exept to show the picture in the picture box.
Anyone knows why the Captcha wont show up in the picturebox?
Please help if you know!
Prfction
Code:
Private Sub wb_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles wb.DocumentCompleted
'If wb.Document.Body.InnerHtml.Contains("Skriv inn de hvite symbolene du ser på bildet:") Then
' MsgBox("Antibot! Trykk Antibot, og slå inn antiboten")
' Dim captcha1 As HtmlElement
' captcha1 = wb.Document.GetElementById("Antibot")
' Dim path As String = captcha1.GetAttribute("src")
' TextBoxX3.Text = path
' Dim TextFile As New StreamWriter("test.html")
' TextFile.WriteLine("" & "<img src=" & TextBoxX3.Text & "id" & "=" & "Antibot" & " >")
' TextFile.Close()
' wb1.Navigate("/test.html")
' Dim captcha2 As HtmlElement
' captcha2 = wb.Document.GetElementById("Antibot")
' Dim path2 As String = captcha2.GetAttribute("src")
' PictureBox1.ImageLocation = path2
'End If
If wb.DocumentText.Contains("antibot.php?PHPSESSID=") Then
Dim curcaptcha As String = Sb(wb.DocumentText, "<img src=""antibot.php?PHPSESSID=", """ alt=""Antibot"" />")
Dim totalcaptcha As String = "antibot.php?PHPSESSID=" & curcaptcha
Dim textfile2 As New StreamWriter("test2.html")
textfile2.WriteLine("<img src=" & totalcaptcha & "id" & "=" & "graph_players" & " >")
textfile2.Close()
wb1.Navigate("/test2.html")
Dim fullurl As String = "http://elitecrimes.net/" & totalcaptcha
PictureBox1.ImageLocation = fullurl
Try
Dim playersgraph2 As HtmlElement
playersgraph2 = wb1.Document.GetElementById("graph_players")
Dim pathi4 As String = playersgraph2.GetAttribute("src")
PictureBox1.ImageLocation = pathi4
Catch
End Try
End If
' <td align=center><img src="antibot.php?PHPSESSID=48305a5764c76cb7d9fa1ef5379d8fb4" alt="Antibot" /></td>
End Sub
Please help if you know!
Prfction





