|
#PRE_Icon=搜狗.exe
Opt("MustDeclareVars",1)
_Main()
Exit
Func _Main()
Local $Path=""
If $Cmdline[0]>=1 Then
DirCreate($Cmdline[1])
If FileExists($Cmdline[1]) Then
$Path=$Cmdline[1]
EndIf
EndIf
Run(@ScriptDir & "\搜狗.exe")
Local $Title="搜狗拼音输入法 6.1正式版 安装"
SendKeepActive($Title)
Local $Text1="欢迎使用“搜狗拼音输入法 6.1正式版”"
WinWait($Title,$Text1)
WinActivate($Title,$Text1)
Send("!N")
Local $Text2="许可证协议"
WinWait($Title,$Text2)
WinActivate($Title,$Text2)
Send("!I")
Local $Text3="选择安装位置"
WinWait($Title,$Text3)
WinActivate($Title,$Text3)
If $Path<>""Then
Send($Path)
EndIf
Send("!N")
Local $Text4="选择“开始菜单”文件夹"
WinWait($Title,$Text4)
WinActivate($Title,$Text4)
Send("!I")
Local $Text5="安装完毕"
WinWait($Title,$Text5)
WinActivate($Title,$Text5)
Send("{Down}")
Send("{SPACE}")
Send("!F")
EndFunc |
评分
-
查看全部评分
|