找回密码
 加入
搜索
查看: 3179|回复: 2

[IE类操作] 如何点击相关网页按钮

[复制链接]
发表于 2014-7-11 20:46:09 | 显示全部楼层 |阅读模式
#include <IE.au3>
Sleep (2000)
$oIE = _IECreate ("http://cqgj.12371.gov.cn/course/Course.aspx?id=3260",0,1,1,0)
$oIEname=_IEGetObjByname ($oIE,"点击播放")
_IEAction ($oIEname, "click")
$oIEname.click
针对上面的代码,我需要点击“点击播放”按钮,请教最后两点该怎么写?
发表于 2014-7-17 00:07:04 | 显示全部楼层
我这里报错
>"D:\Tools\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\prj\Au3\mb\demo.au3"   
--> IE.au3 V2.4-0 Error from function _IENavigate, $_IEStatus_InvalidObjectType
D:\Tools\AutoIt3\Include\IE.au3 (2348) : ==> The requested action with this object has failed.:
If IsObj($o_object.document.GetElementsByName($s_Id).item($i_index)) Then
If IsObj($o_object.document^ ERROR
>Exit code: 1    Time: 3.181
发表于 2014-7-17 15:43:34 | 显示全部楼层
帮顶,坐等大神
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-23 18:05 , Processed in 0.078062 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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