1 Attachment(s)
How to read this image???? Please.....
hi.. vb forumers... :wave: :wave:
i have a problem... :confused: :confused:
this my Code:
Code:
Imports System.Web
Imports mshtml
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate("http://buxp.org/login.php")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("loginsubmit").InvokeMember("click")
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Dim doc As IHTMLDocument2 = WebBrowser1.Document.DomDocument
Dim imgRange As IHTMLControlRange = CType(doc.body, HTMLBody).createControlRange
For Each img As IHTMLImgElement In doc.images
If img.GetAttribute("src").ToString.Contains("image.php") Then
imgRange.add(img)
imgRange.execCommand("Copy", False, Nothing)
PictureBox1.Image = Clipboard.GetDataObject.GetData(DataFormats.Bitmap)
Exit For
End If
Next
End Sub
End Class
and this a form preview
and my question, what the code for write the image values to the textbox??
thanks b4
Re: How to read this image???? Please.....
Re: How to read this image???? Please.....
whether you can get to the image or not the chances are its a picture and you will need to work out how to parse the pixels into characters not so simple!
here to talk
Re: How to read this image???? Please.....
Trying to bypass a captcha i very much doubt is allowed to be discussed here.
Re: How to read this image???? Please.....
Quote:
Originally Posted by
ident
Trying to bypass a captcha i very much doubt is allowed to be discussed here.
Look up OCR on codeproject?
Kris
Re: How to read this image???? Please.....
Yes, but, I think the OP wants to auto-fill in the captcha, which I'm pretty sure is not such a good idea.