action2001 发表于 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
        $rs = WinWaitActive("Internet Explorer", "access")
        ControlClick("Internet Explorer", "access", "")

       
While 1
WEnd

为什么不自动点击呢?请帮我看看啊

panjunkan 发表于 2010-9-7 11:05:47

WinWaitActive("上一条", "")
Send("{ENTER}")
Do
if WinExists("版本冲突","" ) Then
Send("{ENTER}")
EndIf
until WinExists("下一条", "")
WinWaitActive("下一条", "")
页: [1]
查看完整版本: 复制后,弹出的警告怎么自动点击?