lamlam
Junior Member
- Oct 25, 2008
- 134
- 866
Hi. I am making a YouTube account creator when I ran into one problem: In order to get the captcha, I need the url. Unfortunately, the url links to a changing picture. Once all the bugs are worked out, this will be free for everyone to use!!
This is what I have:
I figured out that if I copy the picture to the clipboard, I can paste that image in a picture box. In order to do that, I need to right click that image to show the context menu and then click "Copy". I am trying to achive that programatically. I know you can do this:
But I need to right click. Does anyone know how to do this? If there is another method to get the changing captcha image, please enlighten me.
Thanks,
Lamlam
This is what I have:
Code:
For Each webImage As HtmlElement In WebBrowser2.Document.Images
ListBox1.Items.Add(webImage.GetAttribute("src") & vbCrLf)
Next
WebBrowser1.Navigate(ListBox1.Items(20))
I figured out that if I copy the picture to the clipboard, I can paste that image in a picture box. In order to do that, I need to right click that image to show the context menu and then click "Copy". I am trying to achive that programatically. I know you can do this:
Code:
WebBrowser2.Document.Images.Item(20).InvokeMember("click")
But I need to right click. Does anyone know how to do this? If there is another method to get the changing captcha image, please enlighten me.
Thanks,
Lamlam