找回密码
 加入
搜索
查看: 2339|回复: 6

[AU3基础] 当前已已打开的页面$oIE是什么?

  [复制链接]
发表于 2011-5-22 16:09:45 | 显示全部楼层 |阅读模式
以下的错在哪里呢?该咋改呢?
页面已打开且已登陆的情况下


#include <IE.au3>
$oIE="http://www.chaoke.us/forum.php?mod=viewthread&tid=5795&extra=page%3D1&page=1"
$oForms = _IEFormGetCollection ($oIE)
MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page")
For $Form In $oForms
MsgBox(0, "表单名称", $Form.name)
$oQuerys = _IEFormElementGetCollection ($Form)
For $Query In $oQuerys
MsgBox(0, "表单控件信息", "名称:"&$Query.name & " 类型:"&$Query.type)
Next
Next
发表于 2011-5-22 18:32:10 | 显示全部楼层
$oIE= _IECreate ("http://www.chaoke.us/forum.php?mod=viewthread&tid=5795&extra=page%3D1&page=1")
$oForms = _IEFormGetCollection ($oIE)
MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page")
For $Form In $oForms
MsgBox(0, "表单名称", $Form.name)
$oQuerys = _IEFormElementGetCollection ($Form)
For $Query In $oQuerys
MsgBox(0, "表单控件信息", "名称:"&$Query.name & " 类型:"&$Query.type)
Next
Next

评分

参与人数 1金钱 +10 收起 理由
oceanwind + 10 谢谢

查看全部评分

 楼主| 发表于 2011-5-22 19:29:47 | 显示全部楼层
谢谢楼上的朋友 这样的话 那又要得重新登陆 能不能在已登陆的情况下 再来查询...
发表于 2011-5-22 19:42:41 | 显示全部楼层

#include <IE.au3>
$oIE = _IEAttach("http://www.chaoke.us/forum.php?mod=viewthread&tid=5795&extra=page%3D1&page=1",'url')
$oForms = _IEFormGetCollection($oIE)
MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page")
For $Form In $oForms
        MsgBox(0, "表单名称", $Form.name)
        $oQuerys = _IEFormElementGetCollection($Form)
        For $Query In $oQuerys
                MsgBox(0, "表单控件信息", "名称:" & $Query.name & " 类型:" & $Query.type)
        Next
Next

评分

参与人数 1金钱 +11 收起 理由
oceanwind + 11 谢谢

查看全部评分

 楼主| 发表于 2011-5-22 20:05:30 | 显示全部楼层
ceoguang 发表于 2011-5-22 19:42



显示出如下错误  

>运行:(3.3.6.1):D:\System\autoIT\autoit3.exe "E:\Software\SoftW\AutoIT\MYscript\163mail.au3"   
--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormGetCollection, $_IEStatus_InvalidDataType
E:\Software\SoftW\AutoIT\MYscript\163mail.au3 (9) : ==> ???????????("Object").:
For $Form In $oForms
For $Form In $oForms^ ERROR
发表于 2011-5-22 20:26:30 | 显示全部楼层
上面的错误说明找不到匹配的URL,请确认你给出的URL存在于浏览器中.

评分

参与人数 1金钱 +20 收起 理由
oceanwind + 20 谢谢

查看全部评分

 楼主| 发表于 2011-5-22 20:32:24 | 显示全部楼层
上面的错误说明找不到匹配的URL,请确认你给出的URL存在于浏览器中.
ceoguang 发表于 2011-5-22 20:26

刚又试了 把代码中的URL贴在浏览器中打开此网页 还是一样的
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 05:29 , Processed in 0.115845 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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