|
其实一开始编辑FOXITREADER的脚本就觉得有股不祥的感觉了。这个安装程序在很多方面都给人感觉它与平常的安装程序不一样。果不其然,编写完脚本后运行脚本,一切正常(安装完毕后屏幕闪了两下)。结果编译为EXE运行并安装完成后,竟又自动弹出了一个安装过程。。。如此反复无穷,只有手动中止。
这是我编写的脚本,是最简单的那种。大家帮忙看看问题出在哪里?
Run("FoxitReader.exe")
WinWaitActive("福昕阅读器安装向导","下一步>")
ControlClick("福昕阅读器安装向导","下一步>","Button1")
WinWaitActive("福昕阅读器安装向导","下一步>")
ControlClick("福昕阅读器安装向导","下一步>","Button1")
WinWaitActive("福昕阅读器安装向导","我同意")
ControlClick("福昕阅读器安装向导","我同意","Button1")
WinWaitActive("福昕阅读器安装向导","默认")
ControlClick("福昕阅读器安装向导","默认","Button1")
WinWaitActive("福昕阅读器安装向导","安装")
ControlClick("福昕阅读器安装向导","安装","Button1")
WinWaitActive("","查看新特性")
ControlClick("","查看新特性","Button2")
ControlClick("","查看新特性","Button1") |
|