|
我脚本是这样写的,应该叫是“流程化”了吧?
#include <GuiConstantsEx.au3>
#include <GuiTreeView.au3>
#include <WindowsConstants.au3>
Run("DTLite4356.exe")
$title="DAEMON Tools Lite"
WinWaitActive($title,"欢迎使用 DAEMON Tools Lite 4.35.6.0091 安装向导")
WinActive($title,"")
ControlClick($title,"","[CLASS:Button; INSTANCE:1]")
WinWaitActive($title,"欢迎使用 DAEMON Tools Lite 4.35.6.0091 安装向导")
WinActive($title,"欢迎使用 DAEMON Tools Lite 4.35.6.0091 安装向导")
ControlClick($title,"","[CLASS:Button; INSTANCE:2]")
WinWaitActive($title,"安装 DAEMON Tools Lite 之前")
WinActive($title,"安装 DAEMON Tools Lite 之前")
ControlClick($title,"","[CLASS:Button; INSTANCE:2]")
WinWaitActive($title,"请选择许可类型。")
WinActive($title,"请选择许可类型。")
ControlClick($title,"","[CLASS:Button; INSTANCE:6]")
ControlClick($title,"","[CLASS:Button; INSTANCE:2]")
WinWaitActive($title,"选择您想要安装的 DAEMON Tools Lite 功能。")
WinActive($title,"选择您想要安装的 DAEMON Tools Lite 功能。")
期间一直会有WinXP的"找到硬件向导”弹出,硬件向导需要三个操作才能取消掉(让硬件成为未知硬件问号),但是不知道会有多少次这样的提示,
取消硬件向导的操作我会写,
如何在这种流程化的脚本里,做到一边安装软件,一边监视有没有窗口弹出,有就做操作。。。。
谢谢高手解答!!! |
|