#requireadmin
Opt("MouseCoordMode", 2)
;这个自动安装脚本由f&n安装脚本生产器生成。
HotKeySet("{f11}", "stop")
Run (@ScriptDir& "\QQ2010SP1.exe")
ToolTip("正在为你进行QQ2010SP1 安装,请不要移动鼠标和键盘!"&@CR&"F11可以终止安装脚本!", @DesktopWidth - 360, @DesktopHeight - 120)
WinWait ( "腾讯QQ2010 安装向导","欢迎使用腾讯QQ2010" )
WinActivate( "腾讯QQ2010 安装向导","欢迎使用腾讯QQ2010" )
MouseClick ( "left",198, 313, 1 )
MouseClick ( "left",442, 372, 1 )
WinWait ( "腾讯QQ2010 安装向导","请选择自定义安装选项与快捷方式选项" )
WinActivate( "腾讯QQ2010 安装向导","请选择自定义安装选项与快捷方式选项" )
MouseClick ( "left",101, 147, 1 )
MouseClick ( "left",107, 168, 1 )
MouseClick ( "left",117, 192, 1 )
MouseClick ( "left",125, 286, 1 )
MouseClick ( "left",433, 374, 1 )
WinWait ( "腾讯QQ2010 安装向导","请选择安装路径" )
WinActivate( "腾讯QQ2010 安装向导","请选择安装路径" )
ControlSetText("腾讯QQ2010 安装向导","请选择安装路径","Edit1","C:\Tencent\QQ")
MouseClick ( "left",446, 372, 1 )
WinWait ( "腾讯QQ2010 安装向导","安装完成" )
WinActivate( "腾讯QQ2010 安装向导","安装完成" )
MouseClick ( "left",224, 96, 1 )
MouseClick ( "left",207, 117, 1 )
MouseClick ( "left",222, 136, 1 )
MouseClick ( "left",226, 160, 1 )
MouseClick ( "left",516, 372, 1 )
ToolTip("QQ2010SP1安装完毕!",@DesktopWidth - 360, @DesktopHeight - 120)
Func stop()
Exit
EndFunc