Dim $I, $str
If $CmdLineRaw = "" Then
Exit
Else
$CmdNub = StringSplit($CmdLineRaw, " ")
Switch $cmdline[1]
Case "a"
For $I = 2 To $CmdNub[0]
$str &= $cmdline[$I] & " "
Next
ShellExecute("http://translate.google.cn/translate_t?hl=zh-CN#en|zh-CN|" & $str)
Case "b"
For $I = 2 To $CmdNub[0]
$str &= $cmdline[$I] & " "
Next
ShellExecute("http://translate.google.cn/translate_t#zh-CN|en|" & $str)
Case "c"
For $I = 2 To $CmdNub[0]
$str &= $cmdline[$I] & " "
Next
ShellExecute("http://translate.google.cn/translate_t?hl=zh-CN#auto|zh-CN|" & $str)
EndSwitch
EndIf
[ 本帖最后由 sxd 于 2009-1-30 19:45 编辑 ] |