|
作了一个模拟鼠标点击的脚本(如下),在几台电脑上测试,其中一些电脑正常执行模拟的点击,一些电脑无反应。怀疑是否被操作系统拦截掉点击了,请教有什么思路可以知道具体原因或别的解决方法?
WinWait("Security Update for Microsoft Excel 2010 (KB2826033) 32-Bit Edition","")
WinActivate("Security Update for Microsoft Excel 2010 (KB2826033) 32-Bit Edition","")
ControlClick("Security Update for Microsoft Excel 2010 (KB2826033) 32-Bit Edition","","[CLASS:Button; INSTANCE:1]","left",1)
ControlClick("Security Update for Microsoft Excel 2010 (KB2826033) 32-Bit Edition","","[CLASS:Button; INSTANCE:2]","left",1)
Sleep(300000)
WinClose("Security Update for Microsoft Excel 2010 (KB2826033) 32-Bit Edition","") |
|