写一个简单的ahk脚本- #Persistent
- #NoTrayIcon
- password := "123456" ;设置密码
- SetTimer, BlockWindow, 800
- Return
- BlockWindow:
- if WinExist("ahk_class CabinetWClass"){
- WinClose
- WinClose
- InputBox, input_password, 文件资源管理器, 请输入密码 只验证一次
- if (input_password = password) {
- Run, explorer.exe
- ExitApp
- } else {
- MsgBox,, 密码错误
- }
- }
复制代码
|