death by captcha vb.net

Discussion in 'Visual Basic .NET' started by specopkirbs, Dec 21, 2011.

  1. specopkirbs

    specopkirbs BANNED BANNED

    Joined:
    Nov 28, 2008
    Messages:
    920
    Likes Received:
    746
    has anyone got any working examples of how to incorporate deatch by captcha into a vb.net application?
     
  2. healzer

    healzer Elite Member

    Joined:
    Jun 26, 2011
    Messages:
    2,898
    Likes Received:
    2,876
    Gender:
    Male
    Location:
    Somewhere in Europe
    Home Page:
    I can help you,

    do you already have the code of getting & saving the image from a certain website?
     
  3. stevie

    stevie Newbie

    Joined:
    Jul 31, 2010
    Messages:
    49
    Likes Received:
    10
    Location:
    UK
    Home Page:
    Here is the .net code for DBC:

    Code:
    [COLOR=White]' Do not forget to reference DeathByCaptcha.dll in your project!
    [/COLOR][COLOR=White]Imports [/COLOR][COLOR=White]DeathByCaptcha
    [/COLOR][COLOR=White]Dim [/COLOR][COLOR=White]client [/COLOR][COLOR=White]As [/COLOR][COLOR=White]Client [/COLOR][COLOR=White]= CType[/COLOR][COLOR=White]([/COLOR][COLOR=White]New [/COLOR][COLOR=White]SocketClient(USERNAME, PASSWORD),Client)
    [/COLOR][COLOR=White]Dim [/COLOR][COLOR=White]captcha [/COLOR][COLOR=White]As [/COLOR][COLOR=White]Captcha [/COLOR][COLOR=White]= [/COLOR][COLOR=White]client.Decode(CAPTCHA_FILE_NAME, TIMEOUT)
    [/COLOR][COLOR=White]If [/COLOR][COLOR=White](captcha.Solved [/COLOR][COLOR=White]AndAlso [/COLOR][COLOR=White]captcha.Correct) [/COLOR][COLOR=White]Then
        [/COLOR][COLOR=White]Console.WriteLine([/COLOR][COLOR=White]"CAPTCHA {0}: {1}"[/COLOR][COLOR=White], captcha.Id, captcha.Text)
        [/COLOR][COLOR=White]' Report the CAPTCHA if solved incorrectly.
        ' Make sure the CAPTCHA was in fact incorrectly solved!
        [/COLOR][COLOR=White]client.Report(captcha)
    [/COLOR][COLOR=White]End If
    [/COLOR][COLOR=White]' Repeat for other CAPTCHAs[/COLOR]
    
    Hope it helps. :)
     
    • Thanks Thanks x 1
  4. izSpK

    izSpK BANNED BANNED

    Joined:
    Sep 5, 2010
    Messages:
    1,546
    Likes Received:
    1,668
    They have multiple examples on their site.