GitHub30 / win11toast

Toast notifications for Windows 10 and 11 based on WinRT
https://pypi.org/project/win11toast/
MIT License
227 stars 15 forks source link

你好,请问怎么自定义弹窗上面的程序名称 #22

Closed Uiisland closed 9 months ago

Nicolasking007 commented 1 year ago

可以参考我的项目

happycola233 commented 1 year ago

您好,根据:https://learn.microsoft.com/zh-cn/windows/apps/design/shell/tiles-and-notifications/send-local-toast-other-apps

您可以在注册表:计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppUserModelId 下新建项(项的名称自定,作为app_id),在项中指定图标和程序名称(可参考AppUserModelId下的其它项)

然后在Python代码toast方式中,添加app_id参数,例如:toast(title, text, app_id='注册表中新建项的名称')

Uiisland commented 1 year ago

好的,非常感谢您的回复

发自我的iPhone

在 2023年6月16日,19:15,肥宅水水呀 @.***> 写道:

 您好,根据:https://learn.microsoft.com/zh-cn/windows/apps/design/shell/tiles-and-notifications/send-local-toast-other-apps

您可以在注册表:计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppUserModelId 下新建项(项的名称自定,作为app_id),在项中指定图标和程序名称(可参考AppUserModelId下的其它项)

然后在Python代码toast方式中,添加app_id参数,例如:toast(title, text, app_id='注册表中新建项的名称')

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

Uiisland commented 1 year ago

好的,非常感谢您的回复

发自我的iPhone

在 2023年6月1日,15:40,Nicolas-kings @.***> 写道:

 可以参考我的项目

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.