如何用delphi在后台登录一个网站,并自动或手动输入验证码。
ngyxh 2009-10-03 11:18:13 登陆的按钮是一个图片,但是找不到其name值。
并且查看源文件里面有两个登陆窗口,只能赋值到左边那个窗口的。
另外,怎么样把验证码窗口显示到FORM1上。能自动输入验证码最好。如果不能让其显示到窗体上手动输入也可。QQ:630950。
我只做到这里;想要登陆的网址是:http://he.cnc.cn/checkfee.do?method=checkFeeMonth&Id=5
var
o : Olevariant;
begin
try
o := webbrowser1.OleObject.document.all.item('userAccount',0);
o.value := '123456'; //账号
o := webbrowser1.oleobject.document.all.item('Password',0);
o.value := 'password';//你的实际密码;
o :=webbrowser1.oleobject.document.all.item('localNetId',0);
o.value := '319'; //地区
o :=webbrowser1.oleobject.document.all.item('loginStyle',1);
o.checked :='checked' ; //选择账号
o :=webbrowser1.oleobject.document.all.item('vercode',0);
o.value :='1111' ; //验证码
except
end;