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

"duration=None" is not working #1

Open
Assayas opened this issue Jun 14, 2021 · 6 comments
Open

"duration=None" is not working #1

Assayas opened this issue Jun 14, 2021 · 6 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Assayas
Copy link

Assayas commented Jun 14, 2021

Hi,

I installed win10toast-click using "pip install win10toast-click" and ran your example code, which is working fine.
But when I change the "duration=5" to "duration=None" the notification vanishes with the termination of the program.

I installed win10toast-persist after to test if it is a settings/system issue on my end, but with that the notification is persistent even after termination.

I'm new to git/python/pip so please let me know if I caused the issue.

Kind regards,
Assayas

@vardecab vardecab added bug Something isn't working good first issue Good for newcomers labels Jul 30, 2021
@vardecab vardecab self-assigned this Jul 30, 2021
@marcpinet
Copy link

I agree, having the same issue :/

@marcpinet
Copy link

Any update ? @vardecab

@vardecab
Copy link
Owner

Any update ? @vardecab

Hey @marcpinet. Can confirm, it's indeed a bug in this fork.

Can't find a fix for now - I thought I managed to repair it but then the core functionality of being able to have a callback_on_click didn't work...

@MSZ-Spyro
Copy link

@vardecab Any news on that one ? And as a side note, while running this script from a task scheduler on Win10 it doesn't show any notifications at all. I'm not quite sure how and if its possible to fix that one, but maybe you know about it ?

@vardecab
Copy link
Owner

I'm unable to fix it — looks like one of the updates to Windows 10 (and then whole Windows 11) has impacted this script. Looks like it's better to switch to what @MSZ-Spyro proposed hereWinotify.

@cnbac
Copy link

cnbac commented Mar 6, 2023

你好,

我使用“pip install win10toast-click”安装了 win10toast-click 并运行了您的示例代码,它运行良好。 但是当我将“duration=5”更改为“duration=None”时,通知会随着程序的终止而消失。

我安装了 win10toast-persist 之后测试它是否是我这边的设置/系统问题,但是即使在终止后通知仍然存在。

我是 git/python/pip 的新手,所以请让我知道是否是我造成的问题。

亲切的问候, 阿萨亚斯

image

请查看文档
https://learn.microsoft.com/en-us/windows/win32/api/shellapi/ns-shellapi-notifyicondataa?source=recommendations
https://support.hp.com/cn-zh/document/c01472258
关键字 DUMMYUNIONNAME.uTimeout
希望可以帮到您

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants