$title="瑞星杀毒软件"
Run("Rav2009.exe")
WinWaitActive($title, "确定")
ControlClick($title, "", 1)
WinWaitActive($title, " 瑞星欢迎您")
ControlClick($title, "", 1002)
WinWaitActive($title, "许可协议")
ControlClick($title, "", 1010)
ControlClick($title, "", 1002)
WinWaitActive($title, "验证产品序列号和用户ID")
ControlFocus($title, "", 1028)
ControlSend($title, "", 1028, "******")
ControlFocus($title, "", 1110)
ControlSend($title, "", 1110, "******")
ControlFocus($title, "", 1111)
ControlSend($title, "", 1111, "******")
ControlFocus($title, "", 1112)
ControlSend($title, "", 1112, "******")
ControlFocus($title, "",1313)
ControlSend($title, "", 1313, "************")
ControlClick($title, "", 1002)
WinWaitActive($title, "定制安装")
ControlClick($title, "", 1002)
WinWaitActive($title, "选择目标文件夹")
ControlClick($title, "", 1002)
WinWaitActive($title, "选择开始菜单文件夹")
ControlClick($title, "", 1002)
WinWaitActive($title, "安装信息")
ControlClick($title, "", 1006)
ControlClick($title, "", 1002)
WinWait($title,"结束")
If Not WinActivate($title,"结束") Then WinActivate($title,"结束")
WinWaitActive($title, "结束")
ControlClick($title, "", 1012)
ControlClick($title, "", 1003)
SplashTextOn("自动安装", "已完成 瑞星杀毒软件 的自动安装.", 250, 70, -1, -1, 0, "", 14)
Sleep(2000)
SplashOff()
实在头疼!!