按5楼建议脚本修改为
Run("SunWb_4843.exe")
WinWaitActive("安装 - 海峰五笔86+98标准版","欢迎使用")
Send("!N")
WinWaitActive("安装 - 海峰五笔86+98标准版","信息")
Send("!N")
WinWaitActive("安装 - 海峰五笔86+98标准版","选择目标位置")
Send("!N")
WinWaitActive("安装 - 海峰五笔86+98标准版","选择组件")
Send("!N")
WinWaitActive("安装 - 海峰五笔86+98标准版","准备安装")
Send("!I")
WinWaitActive("海峰五笔 for Win95/98/ME/NT/2000/XP","请选择")
Send("!O")
WinWaitActive("海峰五笔 for Win95/98/ME/NT/2000/XP","安装成功")
Send("!O")
Dim $title,$text,$ID
GUICtrlSetData($title,"Title:安装")
GUICtrlSetData($text,"Text:海峰五笔86+98标准版 安装向导完成")
GUICtrlSetData($ID,"ID: TButton3")
ControlFocus("安装","海峰五笔86+98标准版 安装向导完成","TButton3")
$Returns=ControlClick("安装","海峰五笔86+98标准版 安装向导完成","TButton3","left")
If $Returns=0 Then MsgBox (0,"","对:安装 -> TButton3 控制失败!"&@CRLF&"要用手工输入跳过此次控制")
跳出这个窗口,还是没成功.
[ 本帖最后由 lzxwp 于 2008-10-31 08:22 编辑 ] |