这个,应该是比较烦琐的。
1、先要Import一个类型库Microsoft HTML Object Library(非常恐怖的一个Type Library,居然有28万行)。
2、从WebBrowser上获得IHTMLDocument2对象,就是
IDoc := Webbroswer1.Document as IHTMLDocument2
3、
a := 0;
for i := 0 to IDoc.All.length - 1
begin
AItem := IDoc.All.Item(i, a) as IHTMLElement;
if UpCase(AItem.TagName) = 'INPUT' then
begin
AInputItem := IDispatch(AItem) as IHTMLInputElement;
// do your things
end;
// do other things;
end;
1、先要Import一个类型库Microsoft HTML Object Library(非常恐怖的一个Type Library,居然有28万行)。
2、从WebBrowser上获得IHTMLDocument2对象,就是
IDoc := Webbroswer1.Document as IHTMLDocument2
3、
a := 0;
for i := 0 to IDoc.All.length - 1
begin
AItem := IDoc.All.Item(i, a) as IHTMLElement;
if UpCase(AItem.TagName) = 'INPUT' then
begin
AInputItem := IDispatch(AItem) as IHTMLInputElement;
// do your things
end;
// do other things;
end;
解决方案 »
- clientsocket http协议Post数据
- 求助思路:如何实现类似PowerPoint的幻灯演示的效果?
- 关于数据库还原的问题
- 调用DLL问题,总是不成功。请教高手帮忙
- 请问怎样将String转换为TAlignment
- Delphi7中的链表一定要用Record才能实现吗,用class行不行?
- 谁会安装 RX Library2.75d6,我怎么安不上啊!
- 请问,有好的下载DELPHI源码的地方吗?
- PANEL控件问题?
- 如何对一个文件进行加密解密???
- 各位高手,有关windows的mediaplay播放问题,请求援助!!
- 急!!!有沒有什么可以輕松編輯HTML或Rich格式文檔的控件?
此外,要用好这些对象,需要MSDN,及相关的COM编程知识。
其它方法我就不清楚了。