1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help for Learn captcha from picturebox or webbrowser using DBC

Discussion in 'Visual Basic .NET' started by Andrew1399, Mar 1, 2015.

  1. Andrew1399

    Andrew1399 Newbie

    Joined:
    Feb 28, 2015
    Messages:
    4
    Likes Received:
    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.
     
  2. Rising

    Rising Junior Member

    Joined:
    Dec 14, 2014
    Messages:
    162
    Likes Received:
    3
    Occupation:
    Software Developer
    Location:
    EH
    Home Page:
    Why do you want the captcha to be shown in picture box btw? You can download the captcha image to stream and save it to bitmap and then directly send that bitmap to dbc. Or you can directly send the downloaded byte arrAy for the image to dbc and poll for your status once you get captcha text do a normal POST request along with captcha text
     
  3. Andrew1399

    Andrew1399 Newbie

    Joined:
    Feb 28, 2015
    Messages:
    4
    Likes Received:
    0
    how i can make this?
     
  4. Andrew1399

    Andrew1399 Newbie

    Joined:
    Feb 28, 2015
    Messages:
    4
    Likes Received:
    0
    i realy wanna make one account creator.. captcha change all time.. captcha link and captcha image obvius...