oceanwind 发表于 2011-5-22 16:09:45

当前已已打开的页面$oIE是什么?

以下的错在哪里呢?该咋改呢?
页面已打开且已登陆的情况下


#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

zysanjing1 发表于 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

oceanwind 发表于 2011-5-22 19:29:47

谢谢楼上的朋友 这样的话 那又要得重新登陆 能不能在已登陆的情况下 再来查询...

ceoguang 发表于 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

oceanwind 发表于 2011-5-22 20:05:30


ceoguang 发表于 2011-5-22 19:42 http://www.autoitx.com/images/common/back.gif


显示出如下错误

>运行:(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

ceoguang 发表于 2011-5-22 20:26:30

上面的错误说明找不到匹配的URL,请确认你给出的URL存在于浏览器中.

oceanwind 发表于 2011-5-22 20:32:24

上面的错误说明找不到匹配的URL,请确认你给出的URL存在于浏览器中.
ceoguang 发表于 2011-5-22 20:26 http://www.autoitx.com/images/common/back.gif
刚又试了 把代码中的URL贴在浏览器中打开此网页 还是一样的
页: [1]
查看完整版本: 当前已已打开的页面$oIE是什么?