Set WshShell= WScript.Createobject("WScript.Shell")
for i=1 to 200
WScript.Sleep 2000
WshShell.SendKeys"^v"
WshShell.SendKeys i
WshShell.SendKeys "%s"
next
看不懂,请详解。
for i "^v"
都是什么意思呢?还有%S%
此段VBS代码之含义
答案:1 悬赏:10
解决时间 2021-12-13 02:01
- 提问者网友:剪短发丝
- 2021-12-12 17:20
最佳答案
- 二级知识专家网友:许你一世温柔
- 2021-12-12 18:02
Set WshShell= WScript.Createobject("WScript.Shell")
for i=1 to 200 循环200次
WScript.Sleep 2000 每次间隔2秒~
WshShell.SendKeys"^v"
WshShell.SendKeys i
WshShell.SendKeys "%s"
next 返回到 FOR 继续循环
SendKeys这个命令就是模拟键盘操作 下面这三个特殊键用这3个符号表示
Shift +
Ctrl ^
Alt %
不是说了吗 CTRL 用^代替。。WshShell.SendKeys"^v" 这个自然是模拟键盘输入CTRL+V WshShell.SendKeys "%s" alt+s WshShell.SendKeys i i就是i 啊。。
for i=1 to 200 循环200次
WScript.Sleep 2000 每次间隔2秒~
WshShell.SendKeys"^v"
WshShell.SendKeys i
WshShell.SendKeys "%s"
next 返回到 FOR 继续循环
SendKeys这个命令就是模拟键盘操作 下面这三个特殊键用这3个符号表示
Shift +
Ctrl ^
Alt %
不是说了吗 CTRL 用^代替。。WshShell.SendKeys"^v" 这个自然是模拟键盘输入CTRL+V WshShell.SendKeys "%s" alt+s WshShell.SendKeys i i就是i 啊。。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯