Skip to content

Conversation

@IvanHanloth
Copy link
Owner

新增鼠标侧键隐藏
新增鼠标中键隐藏
新增自动定时隐藏
优化资源占用

Copilot AI review requested due to automatic review settings April 20, 2025 17:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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")

@IvanHanloth IvanHanloth changed the base branch from main to dev April 20, 2025 17:08
@IvanHanloth IvanHanloth merged commit 894430f into dev Apr 20, 2025
@IvanHanloth IvanHanloth deleted the SupportMouse branch April 21, 2025 02:01
This was linked to issues Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

鼠标中键 增加鼠标隐藏 自动隐藏功能

2 participants