找回密码
 加入
搜索
查看: 1326|回复: 2

au3的编码参数是什么 我想把中文变成编码

[复制链接]
发表于 2009-4-27 16:24:35 | 显示全部楼层 |阅读模式
比如http://www.baidu.com/s?wd=草泥马
变成http://www.baidu.com/s?wd=%B2%DD%C4%E0%C2%ED 要怎么弄啊
我现在的代码是这样的 但是只能在IE下正常 用其他浏览器就是乱码 需要编码才能正常访问
#NoTrayIcon
Dim $I, $str
If $CmdLineRaw = "" Then
Exit
Else
$CmdNub = StringSplit($CmdLineRaw, " ")
Switch $cmdline[1]
Case "g"
For $I = 2 To $CmdNub[0]
$str &= $cmdline[$I] & " "
Next
ShellExecute("http://www.google.com/search?hl=zh-CN&ie=GB2312&q=" & $str)
Case "b"
For $I = 2 To $CmdNub[0]
$str &= $cmdline[$I] & " "
Next
ShellExecute("http://www.baidu.com/s?wd=" & $str)
Case "y"
For $I = 2 To $CmdNub[0]
$str &= $cmdline[$I] & " "
Next
ShellExecute("http://one.cn.yahoo.com/s?p=" & $str)
Case "w"
For $I = 2 To $CmdNub[0]
$str &= $cmdline[$I] & " "
Next
ShellExecute("http://www.youdao.com/search?q=" & $str)
EndSwitch
EndIf
 楼主| 发表于 2009-4-27 22:26:19 | 显示全部楼层
没人回?[img][/img]
 楼主| 发表于 2009-4-30 16:47:56 | 显示全部楼层
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-15 03:54 , Processed in 0.077288 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表