vbs qq自动发信息增强版
程序员文章站
2022-03-21 16:40:31
运行前请确定你的电脑安装了word。复制代码 代码如下:i=0set wshshell=createobject("wscript.shell")set objword =...
运行前请确定你的电脑安装了word。
i=0
set wshshell=createobject("wscript.shell")
set objword = createobject("word.application")
set coltasks = objword.tasks
do while i<30
for each objtask in coltasks
if left(objtask.name,1)="与" then
wshshell.appactivate objtask.name
wshshell.sendkeys "{enter}"
wshshell.sendkeys "^v"
wshshell.sendkeys i
wscript.sleep 600
wshshell.sendkeys "%s"
i=i+1
end if
next
loop
复制代码 代码如下:
i=0
set wshshell=createobject("wscript.shell")
set objword = createobject("word.application")
set coltasks = objword.tasks
do while i<30
for each objtask in coltasks
if left(objtask.name,1)="与" then
wshshell.appactivate objtask.name
wshshell.sendkeys "{enter}"
wshshell.sendkeys "^v"
wshshell.sendkeys i
wscript.sleep 600
wshshell.sendkeys "%s"
i=i+1
end if
next
loop
上一篇: goweb-如何设计一个Web框架