找回密码
 加入
搜索
查看: 2351|回复: 6

[AU3基础] (已解决)如何在cmd窗口下打上一行中文

  [复制链接]
发表于 2012-6-20 23:40:14 | 显示全部楼层 |阅读模式
本帖最后由 faceyao 于 2012-6-25 20:57 编辑

cmd的command命令中显示出自己想要的中文
发表于 2012-6-21 01:51:12 | 显示全部楼层
ConsoleWrite('中文')
发表于 2012-6-21 07:09:34 | 显示全部楼层
回复 1# faceyao

试试这个如何?
ShellExecute(@SystemDir & '\cmd.exe')
WinWaitActive('[CLASS:ConsoleWindowClass]')
ClipPut('CMD中文测试')
ControlClick('[CLASS:ConsoleWindowClass]', '', '', 'right')

评分

参与人数 1金钱 +10 贡献 +2 收起 理由
user3000 + 10 + 2 巧妙运用了CMD的特性哦!

查看全部评分

发表于 2012-6-21 08:38:52 | 显示全部楼层
楼上的代码是不是少了一行
ShellExecute(@SystemDir & '\cmd.exe')
WinWaitActive('[CLASS:ConsoleWindowClass]')
ClipPut('CMD中文测试')
ControlClick('[CLASS:ConsoleWindowClass]', '', '', 'right')
Send("{p}")
发表于 2012-6-21 08:52:58 | 显示全部楼层
直接发送不可以吗?
Run("cmd.exe")
WinActivate('[CLASS:ConsoleWindowClass]')
Send('CMD中文测试')
发表于 2012-6-21 09:52:18 | 显示全部楼层
command貌似不支持中文   dir中文目录都是些"?"
cmd不就可以了么 为什么要用command
 楼主| 发表于 2012-6-21 14:45:53 | 显示全部楼层
谢谢3,4楼,可以了,
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-19 18:24 , Processed in 0.080606 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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