请帮我写个vbs的脚本,谢谢

2024-11-30 08:33:48
推荐回答(1个)
回答(1):

set a = CreateObject("WScript.Shell")
msgbox "这行和下行代码可以去掉,只是让你有所准备,2秒后开始!"
WScript.sleep 2000
for i=0 to 10
a.SendKeys "1"
a.SendKeys "{ENTER}"
WScript.sleep 29000
a.SendKeys "2"
a.SendKeys "{ENTER}"
WScript.sleep 29000
next

代码循环11次,要更多次就修改数字10~~