软件分时限制使用管理程序。Time-Shared Restriction Usage Management Program.
中文 & Chinese
English below 英文在下
ZenSurf 是一款软件分时限制使用管理程序,可帮助您在指定时间段内限制特定应用程序的使用,提高工作和学习效率。
- 按时间段限制指定进程的运行
- 密码保护的设置界面,防止未授权修改
- 详细的操作日志记录
- 进程自动检测与管理(最小化或终止受限进程)
- 下载最新版本的 ZenSurf 代码
- 对所有的库进行一波pip
- 打开pack.bat进行打包(需要
pyinstall库)
- 打开"ZenSurf.exe"(如修改
setup.spec内的名称,将为[name].exe)
通过按快捷键 Win+Ctrl+Shift+W (如修改过程序,则为改后的)可打开设置界面,会先提示要求输入密码,才能打开。
- 在设置界面的 "设置" 标签页中,找到 "限制进程列表" 区域
- 每行输入一个需要限制的进程名称(例如:
chrome.exe表示限制谷歌浏览器) - 系统默认已预设了一些常见进程(chrome.exe、msedge.exe 等)
- 完成后点击 "保存设置" 按钮
- 在设置界面的 "设置" 标签页中,找到 "禁用时间段" 区域
- 按照
[注释:]HH:MM-HH:MM格式设置时间段,例如:09:00-12:00表示每天 9 点到 12 点午休:12:00-13:30表示每天 12 点到 13 点 30 分为午休时间
- 系统默认已预设了一些常见时间段(如课间休息、午休等)
- 完成后点击 "保存设置" 按钮
- 在设置界面中,勾选 "启用应用限制功能" 复选框可开启限制功能
- 取消勾选则关闭限制功能,所有进程将不受限制
Note
可能有bug
- 默认解锁密码为
123456 - 如需修改密码,请编辑
blocker.py文件中的UNLOCK_PASSWORD变量
- 在设置界面切换到 "日志" 标签页
- 这里将显示程序的运行日志,包括进程限制记录、密码验证记录等
- 点击 "清空日志" 按钮可清除当前显示的日志内容
当程序检测到受限进程在禁用时间段运行时:
- 会自动最小化相关窗口并弹出密码输入框
- 输入正确密码可临时解锁该程序
- 若连续 3 次输入错误密码,将显示提示窗口并终止受限进程
其实并不会终止(小声bb 算是一个bug 懒得改了)
-
问:程序无法限制某些应用怎么办? 答:请确认您输入的进程名称是否正确(可在任务管理器中查看进程名称)
-
问:忘记密码怎么办? 答:您可以重新安装程序或手动编辑
blocker.py文件修改密码 -
问:如何彻底关闭程序? 答:在任务管理器里结束进程即可。
Important
- 若想完全避免被结束进程,可通过使用ppl control以使进程不可被结束
- 这是一个AI编写的程序,bug很多,敬请谅解
- 为了使程序开机自启,请自行配置
任务计划程序(win+r => taskschd.msc) - 为防止源程序被重命名以致重启后失效,请自行通过用户组权限或其他方式解决
本软件采用 MIT 许可证开源,详情请查看 LICENSE 文件。
英文 & English
Chinese above 中文在上
Using AI Translation
ZenSurf is a time-segmented application usage restriction and management program that helps you limit the use of specific applications during designated time periods to enhance work and study efficiency.
- Restrict the operation of specified processes by time segments
- Password-protected settings interface to prevent unauthorized modifications
- Detailed operation log records
- Automatic process detection and management (minimize or terminate restricted processes)
- Download the latest version of ZenSurf source code
- Install all required libraries via pip
- Run
pack.batto package the program (requires thepyinstallerlibrary)
- Open "ZenSurf.exe" (if you modified the name in
setup.spec, the file will be named[name].exe)
Press the shortcut key Win+Ctrl+Shift+W (or the modified shortcut if you changed it) to open the settings interface. You will be prompted to enter a password to access it.
- In the settings interface, switch to the "Settings" tab and locate the "Restricted Process List" section.
- Enter one process name per line (e.g.,
chrome.exeto restrict Google Chrome). - The system has preset some common processes by default (such as chrome.exe, msedge.exe, etc.).
- Click the "Save Settings" button after completion.
- In the settings interface, switch to the "Settings" tab and locate the "Restricted Time Periods" section.
- Set time periods in the format
[Comment:]HH:MM-HH:MM. Examples:09:00-12:00means 9:00 AM to 12:00 PM dailyLunch Break:12:00-13:30means 12:00 PM to 1:30 PM daily for lunch break
- The system has preset some common time periods by default (such as class breaks, lunch breaks, etc.).
- Click the "Save Settings" button after completion.
- Check the "Enable Application Restriction" checkbox in the settings interface to activate the restriction function.
- Uncheck it to disable the restriction function, allowing all processes to run without limitations.
Note
There may be bugs.
- The default unlock password is
123456. - To modify the password, edit the
UNLOCK_PASSWORDvariable in theblocker.pyfile.
- Switch to the "Logs" tab in the settings interface.
- This section displays the program's operation logs, including process restriction records, password verification records, etc.
- Click the "Clear Logs" button to delete the currently displayed log content.
When the program detects a restricted process running during a restricted time period:
- It will automatically minimize the relevant window and pop up a password input box.
- Enter the correct password to temporarily unlock the program.
- If the password is entered incorrectly 3 consecutive times, a prompt window will appear and the restricted process will be terminated.
Actually, it won't terminate (whispers—it's a bug, too lazy to fix)
-
Q: What if the program fails to restrict certain applications? A: Please confirm that the process name you entered is correct (you can check the process name in Task Manager).
-
Q: What if I forget the password? A: You can reinstall the program or manually edit the
blocker.pyfile to modify the password. -
Q: How to completely close the program? A: End the process in Task Manager.
Important
- To completely prevent the process from being terminated, you can use PPL Control (Protected Process Light) to make the process unterminable.
- This is an AI-written program with many bugs—your understanding is appreciated.
- To set the program to run on startup, configure it through Task Scheduler manually (press Win+R, then enter
taskschd.msc). - To prevent the original program from being renamed and thus failing after restart, please resolve it through user group permissions or other methods manually.
This software is open-source under the MIT License. For details, please refer to the LICENSE file.