回复 10# zhoudf
大概就是这样,没有试过。
Run(@ScriptDir & "\MSEInstall.exe")
Do
Sleep(500)
Until WinExists("Microsoft Security Essentials","欢迎使用 Microsoft Security Essentials 安装向导")
$WinHandle = WinGetHandle("Microsoft Security Essentials","欢迎使用 Microsoft Security Essentials 安装向导")
ControlClick($WinHandle, "","Button1")
Sleep(1000)
ControlClick($WinHandle, "Microsoft Security Essentials 软件许可条款","Button1")
Sleep(1000)
WinWaitActive($WinHandle,"加入客户体验改善计划")
Send("!j")
ControlClick($WinHandle, "","Button4")
Sleep(1000)
ControlClick($WinHandle, "优化安全性","Button2")
Sleep(1000)
ControlClick($WinHandle, "准备安装 Microsoft Security Essentials","Button1")
Sleep(1000)
ControlClick($WinHandle, "正在完成 Microsoft Security Essentials 安装向导","Button1")
|