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

[IE类操作] 复制后,弹出的警告怎么自动点击?

[复制链接]
发表于 2010-9-7 09:46:23 | 显示全部楼层 |阅读模式
代码如下:

#include <IE.au3>
$oIE2 = _IECreate ("about:blank")
        _IEBodyWriteHTML ($oIE2, "Hello <b>iFrame!</b>")
        _IEAction($oIE2,"selectall")
        _IEAction($oIE2,"copy")
        ; Wait for Alert window, then click on OK  ;Do you want to allow this webpage to access your Clipboard ; &Allow access  [CLASS:Button; INSTANCE:2]
        $rs = WinWaitActive("Internet Explorer", "access")
        ControlClick("Internet Explorer", "access", "[CLASS:Button; TEXT:&Allow access; Instance:2;]")

       
While 1
WEnd

为什么不自动点击呢?请帮我看看啊
发表于 2010-9-7 11:05:47 | 显示全部楼层
WinWaitActive("上一条", "")
Send("{ENTER}")
Do
if WinExists("版本冲突","" ) Then
Send("{ENTER}")
EndIf
until WinExists("下一条", "")
WinWaitActive("下一条", "")
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-18 20:50 , Processed in 0.079055 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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