本帖最后由 dongribo 于 2014-2-8 16:25 编辑
我在编写自动安装Office2010碰到这个问题不能解决请各位高手帮帮忙。
在安装Office2010时要等上一段时间才能装完,这段时间AU3如何编写“如何判断软件是否安装完成”
Opt("MustDeclareVars", 1)
Opt("TrayIconDebug", 1)
Opt("MouseCoordMode", 2)
Run("setup.exe")
WinWaitActive("Microsoft Office Professional Plus 2010")
Sleep(1000)
;我接受此协议的条款
MouseClick("left", 78, 428)
Sleep(1000)
WinWaitActive("Microsoft Office Professional Plus 2010")
Sleep(1000)
;接受
MouseClick("left", 498, 436)
Sleep(1000)
WinWaitActive("Microsoft Office Professional Plus 2010")
Sleep(1000)
;自定义
MouseClick("left", 303, 283)
Sleep(1000)
WinWaitActive("Microsoft Office Professional Plus 2010")
Sleep(1000)
;Microsoft Office
MouseClick("left", 77, 98)
Sleep(1000)
;从本机运行全部程序
MouseClick("left", 55, 30)
Sleep(1000)
WinWaitActive("Microsoft Office Professional Plus 2010")
Sleep(1000)
;自定义
MouseClick("left", 529, 434)
Sleep(1000)
WinWaitActive("Microsoft Office Professional Plus 2010")
Sleep(1000)
;关闭
MouseClick("left", 542, 434)
|