Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request adds mouse‐triggered window hiding (via middle and side buttons), automatic window hiding after inactivity, and process freeze functionality to reduce resource usage.
- Added functions in core/tools.py for process freezing/resuming using Windows APIs or pssuspend64.exe.
- Introduced new configuration options (in core/config.py) and updated listeners (in core/listener.py) to manage auto hiding and mouse input.
- Enhanced the GUI with new settings pages and options for mouse hide, auto hide, and process freeze features.
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| main/core/tools.py | Added functions for admin checks and process freeze/resume. |
| main/core/config.py | Introduced new configuration options for freeze and mouse hide. |
| main/core/listener.py | Integrated mouse listener and auto hide timer logic. |
| main/GUI/* | Updated GUI pages with controls for mouse hide, auto hide, freezing. |
| main/Boss-Key.py | Updated application startup and cleanup logic. |
Comments suppressed due to low confidence (2)
main/Boss-Key.py:40
- The HotkeyListener class does not define a 'Close()' method; consider calling an existing cleanup method (e.g., '_stop()') instead or implement a proper Close() method.
Config.HotkeyListener.Close()
main/core/tools.py:52
- The code references 'Config.root_path', but Config is not imported in this file. Please add 'from core.config import Config' at the top.
pssuspend_path = os.path.join(Config.root_path,"pssuspend64.exe")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增鼠标侧键隐藏
新增鼠标中键隐藏
新增自动定时隐藏
优化资源占用