Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 已有托盘在运行时,阻止托盘重复启动、且提供指引提示 #56

Closed
Antonoko opened this issue Dec 4, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request P0 highest priority

Comments

@Antonoko
Copy link
Member

Antonoko commented Dec 4, 2023

#46

指引弹窗参考实现:

import ctypes

# 定义Windows API函数签名
MessageBox = ctypes.windll.user32.MessageBoxW

# 定义弹窗函数
def show_error_popup(message):
    MessageBox(None, message, "Windrecorder is already running", 0x40)

# 示例用法
show_error_popup("Another Windrecorder is running in system tray.\n\n已有「捕风记录仪」在系统托盘中运行。")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P0 highest priority
Projects
None yet
Development

No branches or pull requests

2 participants