This repository was archived by the owner on Oct 7, 2024. It is now read-only.
OSError: [WinError -2147023728] #18
Answered
by
dlech
dreamdomroy
asked this question in
Q&A
-
|
There's an app that tells me who's calling through a Windows's system notification, I want to concatenate it with my python program. here is the code I found on the internet: from winsdk.windows.ui.notifications.management import *
from winsdk.windows.ui.notifications import *
listener = UserNotificationListener.get_current()
def handler(listener, event):
notification = listener.get_notification(event.user_notification_id)
if hasattr(notification, "app_info"):
print("App Name: ", notification.app_info.display_info.display_name)
listener.add_notification_changed(handler) I test it on both Windows 11 and Windows 10, it keeps showing this error message : OSError: [WinError -2147023728] |
Beta Was this translation helpful? Give feedback.
Answered by
dlech
Oct 13, 2022
Replies: 1 comment
-
|
Please see #16. The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dreamdomroy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please see #16. The
windows.uinamespace it not usable outside of a packaged WinUI 3 app.