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

对于网页总的alert对话框,如何自动单击确定

[复制链接]
发表于 2008-12-25 13:00:32 | 显示全部楼层 |阅读模式
对于网页总的alert对话框,如何自动单击确定?
我单击网页中确定按钮,网页跳出对话框,如何用autoit自动单击确定?谢谢指点
我的代码如下:
_IEFormImageClick ($oIE, "ImageButton1", "name")
Sleep(1000)
Send("{ENTER}")
_IEQuit($oIE)



已经解决


使用AdlibEnable("end")函数

AdlibEnable("end")
在最后加上函数
Func end()
        If WinExists("Microsoft Internet Explorer") Then
                WinClose("Microsoft Internet Explorer")
        EndIf
EndFunc   ;==>end

[ 本帖最后由 zzzhanghc 于 2008-12-30 09:00 编辑 ]
 楼主| 发表于 2008-12-25 13:31:46 | 显示全部楼层
为什么alert的对话框无法确定
不然脚本会暂定执行
而且网页中有alert对话框,网页不能关闭
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-7 04:59 , Processed in 0.074301 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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