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

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

1.快认错!

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

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

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

3.直接关机

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

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个HTML朋友代码的示例: ```html <!DOCTYPE html> <html> <head> <title>朋友</title> <script> function pop(){ for(i=1; i<=20; i++){ window.open('#.htm','','width=800,height=600','status=off','location=off'); } } </script> </head> <body> <a href="#" onmouseover='pop()'>千万不要把鼠标放到这里!!!</a> </body> </html> ``` 这段代码会在鼠标悬停在链接上时出20个窗口,可能会让你的朋友感到惊讶或困惑。请注意,这只是一个示例代码,如果您想使用它,请自行修改适应您的需求。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [小学妹,督促学习的html代码](https://blog.csdn.net/weixin_44434883/article/details/117065451)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [5个拿来就能用的代码脚本](https://blog.csdn.net/wangyuxiang946/article/details/128311725)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值