Post: I need help adding a captcha to my program c#
12-25-2014, 04:52 AM #1
Not Rage
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({}); Okay so I am trying to make a program that makes PSN accounts with only your email, password & PSN ID

I have everything coded so far besides the captcha I know how to add the answer for the captcha off the website but I do not know how to implement the image from the website so if shows which ever captcha the site requires you to complete, please help, thanks.
(adsbygoogle = window.adsbygoogle || []).push({});
12-25-2014, 12:08 PM #2
Webbrowser_DocumentCompleted:
Dim CaptchaImage As String = Webbrowser.Document.GetElementById("recaptcha_challenge_image").GetAttribute("src")
PictureBox.Load(CaptchaImage)

Method:
Public Sub SetAttribute(ByVal attr As String, ByVal ElementID As String)
Dim src As String = attr
Webbrowser.Document.GetElementById(ElementID).SetAttribute("value", src)
End Sub

"Create Account" Button or as similar:
SetAttribute(txt_Captcha.Text, "recaptcha_response_field")

Hope i can helped you!
-TrpDnrs

The following user thanked TrpDnrs for this useful post:

RTE
12-27-2014, 10:02 AM #3
One
At least I can fight
Originally posted by TrpDnrs View Post
Webbrowser_DocumentCompleted:
Dim CaptchaImage As String = Webbrowser.Document.GetElementById("recaptcha_challenge_image").GetAttribute("src")
PictureBox.Load(CaptchaImage)

Method:
Public Sub SetAttribute(ByVal attr As String, ByVal ElementID As String)
Dim src As String = attr
Webbrowser.Document.GetElementById(ElementID).SetAttribute("value", src)
End Sub

"Create Account" Button or as similar:
SetAttribute(txt_Captcha.Text, "recaptcha_response_field")

Hope i can helped you!
-TrpDnrs

the title clearly says C#
12-27-2014, 12:42 PM #4
Sorry, my mistake and thanks for the note
But the conversion between VB and C# isnt really difficult or complex

string CaptchaImage = Webbrowser.Document.GetElementById("recaptcha_challenge_image").GetAttribute("src");
PictureBox.Load(CaptchaImage);


public void SetAttribute(string attr, string ElementID)
{
string src= attr;
Webbrowser.Document.GetElementById(ElementID).SetAttribute("value", src);
}

SetAttribute(txt_Captcha.Text, "recaptcha_response_field")
12-27-2014, 06:53 PM #5
Default Avatar
Oneup
Guest
Originally posted by Astek View Post
the title clearly says C#


It's not like vb and c# are that different. Any decent programmer could do the change on their own.
12-27-2014, 08:35 PM #6
One
At least I can fight
Originally posted by 1UP View Post
It's not like vb and c# are that different. Any decent programmer could do the change on their own.


i know that, pretty much the same just a different syntax, but if the OP asks a question about c# it would make sense to answer it in c# wouldn't it?

and anyway web requests > web browser
12-27-2014, 09:40 PM #7
Default Avatar
Oneup
Guest
Originally posted by Astek View Post
i know that, pretty much the same just a different syntax, but if the OP asks a question about c# it would make sense to answer it in c# wouldn't it?

and anyway web requests > web browser


Well some people have samples in another language. If someone can't take an example and turn it into what they need then they might be out of luck. You can't spoon feed everyone.
12-27-2014, 09:57 PM #8
Yh thanks for the note dont note it
12-27-2014, 10:00 PM #9
* Had the same project (Account Manager) and wrote the code down as i see the post
So sorry that i dont note that its for c#
But if you havent basics in VB you can use online converter or something
12-27-2014, 10:07 PM #10
One
At least I can fight
Originally posted by 1UP View Post
Well some people have samples in another language. If someone can't take an example and turn it into what they need then they might be out of luck. You can't spoon feed everyone.

yeah, but him making this thread shows that he is asking to get spoon feed, hes asking how to do something rather than trying(asking google) then ask for help if/when he gets stuck.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo