Andrew1399
Newbie
- Feb 28, 2015
- 4
- 0
Public Sub Main()
'Put your DBC username & password here:
Dim clnt As New HttpClient(("XX"), ("XX"))
'Dim clnt As New SocketClient(("XX"), ("XX"))
Console.WriteLine(String.Format("Your balance is {0,2:f} US cents", clnt.Balance))
Dim cptch As Captcha = clnt.Upload**(WebBrowser1.Document.GetElementById("captcha_image"))** < erro here
ProgressBar1.Step = 30
ProgressBar1.PerformStep()
Console.WriteLine(String.Format("CAPTCHA {0:d} uploaded", cptch.Id))
' Poll for the CAPTCHA status.
While cptch.Uploaded And Not cptch.Solved
Thread.Sleep(Client.PollsInterval * 1000)
cptch = clnt.GetCaptcha(cptch.Id)
ProgressBar1.Value = ProgressBar1.Value + 1
End While
If cptch.Solved Then
Console.WriteLine(String.Format("CAPTCHA {0:d} solved: {1}", cptch.Id, cptch.Text))
ProgressBar1.Value = 100
TextBox1.Text = cptch.Text
Else
Console.WriteLine("CAPTCHA was not solved")
how i can get captcha from webbrowser and death she?
or too get captcha from webbrowser for picturebox, and kill captcha in picturebox and sent result for textbox...
how i can make this? MY ENGLISH NO MANY GOOD, IF NEED I'M EXPLAIN BETTER PLEASE TALK ME.
'Put your DBC username & password here:
Dim clnt As New HttpClient(("XX"), ("XX"))
'Dim clnt As New SocketClient(("XX"), ("XX"))
Console.WriteLine(String.Format("Your balance is {0,2:f} US cents", clnt.Balance))
Dim cptch As Captcha = clnt.Upload**(WebBrowser1.Document.GetElementById("captcha_image"))** < erro here
ProgressBar1.Step = 30
ProgressBar1.PerformStep()
Console.WriteLine(String.Format("CAPTCHA {0:d} uploaded", cptch.Id))
' Poll for the CAPTCHA status.
While cptch.Uploaded And Not cptch.Solved
Thread.Sleep(Client.PollsInterval * 1000)
cptch = clnt.GetCaptcha(cptch.Id)
ProgressBar1.Value = ProgressBar1.Value + 1
End While
If cptch.Solved Then
Console.WriteLine(String.Format("CAPTCHA {0:d} solved: {1}", cptch.Id, cptch.Text))
ProgressBar1.Value = 100
TextBox1.Text = cptch.Text
Else
Console.WriteLine("CAPTCHA was not solved")
how i can get captcha from webbrowser and death she?
or too get captcha from webbrowser for picturebox, and kill captcha in picturebox and sent result for textbox...
how i can make this? MY ENGLISH NO MANY GOOD, IF NEED I'M EXPLAIN BETTER PLEASE TALK ME.