找回密码
 加入
搜索
查看: 2145|回复: 1

[IE类操作] 表单名称用_IEFormGetObjByName无法匹配的问题

[复制链接]
发表于 2010-4-19 23:58:55 | 显示全部楼层 |阅读模式
我想做一个自动登陆百度的脚本
我用
#include <IE.au3>
$oIE = _IECreate ("http://passport.baidu.com")
$oForms = _IEFormGetCollection ($oIE)
MsgBox(0, "表单信息", "这个页面上共有" & @extended & "个表单")
For $Form In $oForms
MsgBox(0, "表单名称", $Form.name)
$oQuerys = _IEFormElementGetCollection ($Form)
For $Query In $oQuerys
MsgBox(0, "表单控件信息", "名称:"&$Query.name & " 类型:"&$Query.type)
Next
Next
获取到表单名称 是 0
但是我用
#include <IE.au3>
$oIE =_IECreate("http://passport.baidu.com/?login&tpl=mn")
$oForm = _IEFormGetObjByName ($oIE, "0")
去匹配时
提示IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
@Error: 0 ($_IEStatus_Success) = 无错误
3 ($_IEStatus_InvalidDataType) = 无效数据类型
7 ($_IEStatus_NoMatch) = 不匹配
有高人能点点下是为啥么?
 楼主| 发表于 2010-4-20 09:28:32 | 显示全部楼层
有人能抽空给我讲解一下原因吗?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-19 10:02 , Processed in 0.076339 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表