请参考下我的沙盘自动安装脚本
Run('Sandboxie3.3512cn.exe')
WinWaitActive("Sandboxie 3.35.12","Please select a language.")
ControlCommand("Sandboxie 3.35.12","Please select a language.","ComboBox1","SelectString","Chinese (Simplified)")
send("{enter}")
WinWaitActive("Sandboxie 3.35.12 安装 ","许可证协议")
send("!i")
WinWaitActive("Sandboxie 3.35.12 安装 ","选择安装位置")
send("!i")
WinWaitActive("Sandboxie 3.35.12 安装 ","安装完成")
send("!n")
WinWaitActive("Sandboxie 3.35.12 安装","该驱动能在大多数计算机上成功安装。")
send("{enter}")
WinWaitActive("Sandboxie 3.35.12 安装 ","完成(&F)")
send("{enter}")
WinWaitActive("欢迎使用 Sandboxie","获取在线 Sandboxie 入门(&G)")
ControlClick("欢迎使用 Sandboxie","获取在线 Sandboxie 入门(&G)","Button3")
WinWaitActive("Sandboxie Control","")
send("!h")
send("{R}")
WinWaitActive("注册 Sandboxie","注册码")
ControlSend("注册 Sandboxie","注册码", "Edit1", "xdowns.com")
ControlSend("注册 Sandboxie","注册码", "Edit2", "WM5BJNB")
send("!o")
WinWaitActive("注册 Sandboxie","感谢您支持 Sandboxie!")
send("{enter}")
ProcessExists ("SbieCtrl.exe")
ProcessClose ("SbieCtrl.exe")
ProcessExists ("SbieSvc.exe")
ProcessClose ("SbieSvc.exe")
|