帮忙写一个简单的VBS 程序 打开一个记事本 输入2000- 3000 中间加空格

[复制链接]
查看11 | 回复2 | 2011-9-22 20:13:26 | 显示全部楼层 |阅读模式
Dim ws Set ws=WScript.CreateObject("WScript.Shell") ws.run "notepad"wscript.sleep 5000dim a,b,c,dfor a=2 to 3for b=0 to 9for c=0 to 9for d=0 to 9ws.sendkeys "{" & a & "}"ws.sendkeys "{" & b & "}"ws.sendkeys "{" & c & "}"ws.sendkeys "{" & d & "}"ws.sendkeys "{ }"nextnextnextnext上面那个速度快,但CPU可能弄不...
回复

使用道具 举报

千问 | 2011-9-22 20:13:26 | 显示全部楼层
Set WshShell=WScript.CreateObject("WScript.Shell")WshShell.Run "notepad.exe"WScript.Sleep 200'WshShell.AppActivate "无标题 记事本" ‘这里填打开记事本默认标题dim aa=2000doa=a+1WshShell...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行