W
WangZhaoHui
Unregistered / Unconfirmed
GUEST, unregistred user!
WebBrowser编程-自动登录操作利用Delphi的Olevariant类型var o : Olevariant; www: widestring;begin o := WebBrowser1.oleobject.document.all.item('message', 0); www := ''; for i := 0 to Memo2.Lines.count - 1 do www := www + Memo2.Lines + #13 + #13; o.value := www; WebBrowser.oleobject.document.Forms.Item(0, 0).submit; //第一个表单提交其实我就是想把Memo.Lines内容赋给o.value提交上去.但提交后无法换行啊.有办法吗{ o :=WebBrowser.oleobject.document.all.item('Login',0); //或者用指定表单名称提交 o.Click; //点击操作,对其它对象也可同样操作}end;