a=inputbox("请输入挂机密码:"&chr(13)&chr(13)&"当前时间为:"&Chr(13)&Date()&Chr(13)&Time(),"挂机锁--鸿飞齐天 QQ: 鸿飞工作室")
If IsEmpty(a) Then ' 当输入为空值时(如点击取消或者关闭)
createobject("wscript.shell").popup " 你已经取消挂机"&chr(13)&" 谢谢使用suner挂机锁"&chr(13)&"当前时间为:"& Now,,"挂机锁--鸿飞齐天"
WScript.Quit '退出vbs
Else
Set Wsh = WScript.CreateObject("WScript.Shell")
Wsh.run "taskkill /f /im explorer.exe" ' 关闭桌面
Set Mgr = WScript.CreateObject("WScript.Shell")
Mgr.regwrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr",1,"REG_DWORD" '通过修改注册表来禁止任务管理器
b=inputbox("请输入正确挂机密码进行解锁…………:"&chr(13)&chr(13)&"当前时间为:"&Chr(13)&Date()&Chr(13)&Time()," 挂机锁--鸿飞齐天 鸿飞工作室")
End if
Do
if b=a then
Set Wsh = WScript.CreateObject("WScript.Shell")
Wsh.run "explorer.exe" ' 运行桌面
Set Mgr = WScript.CreateObject("Wscript.Shell")
Mgr.regwrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr",0,"REG_DWORD" '允许使用任务管理器
MsgBox "谢谢使用suner挂机锁 有不足之处请联系QQ877929281或者发邮件到877929281@qq.com","挂机锁--鸿飞齐天 QQ: 鸿飞工作室"
Exit do
else
b=inputbox("挂机中…… "&chr(13)&chr(13)&"解锁需要重新输入正确验证码:"&chr(13)&chr(13)&"当前时间为:"&Chr(13)&Date()&Chr(13)&Time()," 挂机锁---鸿飞齐天 QQ: 鸿飞工作室")
End if
Loop