博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
autoit3 ie.au3 函数之——_IEFormElementGetCollection & _IEFormGetCollection
阅读量:4051 次
发布时间:2019-05-25

本文共 1407 字,大约阅读时间需要 4 分钟。

_IEFormElementGetCollection : Returns a collection object variable representing all Form Elements within a given Form.

返回文档内描述表单元素的对象变量合集

#include <IE.au3>

_IEFormElementGetCollection ( ByRef $o_object [, $i_index = -1] )

_IEFormGetCollection Returns a collection object variable representing the Forms in the document or a single form by index.

返回文档内描述表单的对象变量合集

#include <IE.au3>

_IEFormGetCollection ( ByRef $o_object [, $i_index = -1] )

例子:

; *******************************************************

; Example 1 - Get a reference to a specific form element by 0-based index.
;               In this case, submit a query to the Google search engine
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("http://www.google.com")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
_IEFormSubmit ($oForm)

例子:

; *******************************************************

; Example 2 - Get a reference to the collection of forms on a page,
;               and then loop through them displaying information for each
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("http://www.google.com")
$oForms = _IEFormGetCollection ($oIE)
MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page")

For $oForm In $oForms

    MsgBox(0, "Form Info", $oForm.name)
Next

转载地址:http://bwjci.baihongyu.com/

你可能感兴趣的文章
文学大师做菜艺术20个"须知"
查看>>
SVN + 批处理 + Dropbox + TeamViewer实现远方协同工作
查看>>
vc学习之关于缩放到托盘区
查看>>
vc学习之键盘事件OnKeyDown
查看>>
近期工作
查看>>
春寒料峭,原来春天这样走近
查看>>
电脑坏了--关于联想笔记本声卡驱动
查看>>
C#中枚举类型在switch语句中值对照问题
查看>>
GridView中根据特殊标记设置不可编辑
查看>>
PowerDesinger中生成数据库时将域的内容转化为实际的字段
查看>>
通过模板将GridView导出为Excel
查看>>
迭代开发过程及一些原则
查看>>
Windows IIS服务器CA认证安装
查看>>
Asp.net 中Excel通过模板导出中发布问题
查看>>
64位机器配置CA认证一些小问题
查看>>
SVN自动完全备份
查看>>
开发中的Warning原来也很有用
查看>>
Silverlight Toolkit例子代码中缺少System.Windows.Controls.Samples.Common.dll的解决办法
查看>>
项目经理培训后的一点感概
查看>>
vc学习之窗口大小发生变更时使控件自动摆放到合适的位置
查看>>