So for my Mule creator, I wanna make it less webbrowser GUI and more compact and smaller for everyone, so here is my code to show the image but for some reason it doesn't show it?
Am I using the wrong URL?
Code:If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then For Each Captcha As HtmlElement In WebBrowser1.Document.Images If Captcha.GetAttribute("src").Contains("http://api.recaptcha.net/noscript?k=6Lc96AAAAAAAANG1YKnED8OpogYLWtLStAMGVvv-") Then PictureBox1.Load(Captcha.GetAttribute("src")) End If
Results 1 to 2 of 2
Thread: Loading Capthca into Picturebox?
- 10 Mar. 2013 12:07am #1
Loading Capthca into Picturebox?
- 10 Mar. 2013 12:34am #2
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 2.82
Just make your code grab the URL straight off of the page, so you can be sure that you're using the correct URL each time.
Like, make it grab whatever string is in between a set of characters. For example, look at this:
<a href="http://fagswithaids.com">lol</a>
If in your code, you said "Grab everything between <a href=" and ">lol</a>, it would return http://fagswithaids.com
You could use this to grab the URL to the captcha image, and then use that URL that you grabbed to display the captcha in your program.