vbs禁用任务管理器

set shell=createobject("wscript.shell")'新建对象
do
shel.run"cmd\c taskkill \f\im taskmgr.exe",vbhide'杀进程
wscript.sleep 500'间歇时间(毫秒)
loop

废话不多说,直接……继续写(因为发文助手说我写得太少了)

好吧,再改改吧

​
​
set shell=createobject("wscript.shell")
shell.run "notepad.exe",1
shell.sendkeys"welcome to taskill"
wscript.sleep 1000
shell.sendkeys"/n"'哦对我忘记是\还是/了(偷笑)
shell.sendkeys"I will kill ren wu guan li qi"
wscript.sleep 1000
shell.sendkeys"3s"
wscript.sleep 1000
shell.sendkeys"2s"
wscript.sleep 1000
shell.sendkeys"1s"
wscript.sleep 1000
shell.sendkeys"GO!"
wscript.sleep 1000
createobject("SAPI.spvoice").speak"开始杀进程"
shell.sendkeys"{f4}"
shell.sendkeys"{y}"
do
shell.run"cmd\c taskkill \f\im taskmgr.exe",vbhide
wscript.sleep 500
loop

​

​

这样显得酷多了——吧。。。运行后会先打开记事本告诉你要杀进程,然后就是AI说“开始杀进程”,再关闭记事本,最后一直杀进程。NICE!

你可能感兴趣的:(vbs,其他)