Joke Collection Website - Public benefit messages - VB gets the verification code in the webpage.

VB gets the verification code in the webpage.

Left, I'm really depressed.

Didn't I tell you?

Dimension x

Size control range

For each x in Web 1. Documentation. All

If X.tagName = "IMG ",then

Web 1。 stop

Set CtrlRange = Web 1. document . body . createcontrolrange()

CtrlRange。 Add (x)

CtrlRange.execCommand ("Copy ")

Set the image 1. Picture = Clipboard. Get data

If ... it will be over.

then

Web 1 is a WebBrowser control, and Image 1 is an image control.

When loading the WebBrowser control page, use the above code to obtain the verification code picture.

It's easier to save locally.

Save the picture image 1. Picture, "c:\hxheiyao.bmp"

I don't understand you!

Can you solve your problem?