Open Reikagilu opened 4 years ago
Unfortunately no, someone told to transform the archive python to a .exe, but i didn't test it
De: hugo utz @.> Enviado: quinta-feira, 11 de março de 2021 17:31 Para: jithurjacob/Windows-10-Toast-Notifications @.> Cc: Reikagilu @.>; Author @.> Assunto: Re: [jithurjacob/Windows-10-Toast-Notifications] Rename the name of program in the notification center (#74)
Did anyone find a way to edit the Notification Title being "Python" or the executable name ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jithurjacob/Windows-10-Toast-Notifications/issues/74#issuecomment-797028792, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFC24VDBNVKEFJSOKJEIPNDTDESC5ANCNFSM4N2UIV5Q.
I am using this. It works perfectly. You can assign any string to appid, that would become the name of the notifications but I can't seem to figure out how to clear out the notifications or make python listen for the click event refer https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/toast-ux-guidance
from winrt.windows.ui.notifications import ToastNotificationManager, ToastNotification
import winrt.windows.data.xml.dom as dom
appid=r'C:\Users\HP\AppData\Local\Programs\Python\Python38\python.exe'
notifier = ToastNotificationManager.create_toast_notifier(appid)
tString = """<toast duration='short'><audio src = 'ms-winsoundevent:Notification.Reminder' loop = 'false' silent = 'false'/><visual><binding template='ToastText02'><text id="1">""" + title + """</text><text id="2">""" + desp + """</text></binding></visual></toast>"""
xDoc = dom.XmlDocument()
xDoc.load_xml(tString)
notifier.show(ToastNotification(xDoc))
I am using this. It works perfectly. You can assign any string to appid, that would become the name of the notifications but I can't seem to figure out how to clear out the notifications or make python listen for the click event refer https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/toast-ux-guidance
from winrt.windows.ui.notifications import ToastNotificationManager, ToastNotification import winrt.windows.data.xml.dom as dom appid=r'C:\Users\HP\AppData\Local\Programs\Python\Python38\python.exe' notifier = ToastNotificationManager.create_toast_notifier(appid) tString = """<toast duration='short'><audio src = 'ms-winsoundevent:Notification.Reminder' loop = 'false' silent = 'false'/><visual><binding template='ToastText02'><text id="1">""" + title + """</text><text id="2">""" + desp + """</text></binding></visual></toast>""" xDoc = dom.XmlDocument() xDoc.load_xml(tString) notifier.show(ToastNotification(xDoc))
Good shit buddy, good bypass to this hardly maintained repo. 👍 But how would you add add Icons to this?
I am using this. It works perfectly. You can assign any string to appid, that would become the name of the notifications but I can't seem to figure out how to clear out the notifications or make python listen for the click event refer https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/toast-ux-guidance
from winrt.windows.ui.notifications import ToastNotificationManager, ToastNotification import winrt.windows.data.xml.dom as dom appid=r'C:\Users\HP\AppData\Local\Programs\Python\Python38\python.exe' notifier = ToastNotificationManager.create_toast_notifier(appid) tString = """<toast duration='short'><audio src = 'ms-winsoundevent:Notification.Reminder' loop = 'false' silent = 'false'/><visual><binding template='ToastText02'><text id="1">""" + title + """</text><text id="2">""" + desp + """</text></binding></visual></toast>""" xDoc = dom.XmlDocument() xDoc.load_xml(tString) notifier.show(ToastNotification(xDoc))
Good shit buddy, good bypass to this hardly maintained repo. 👍 But how would you add add Icons to this?
How could you also add a custom sound ? The Microsoft documentation is so bad ...
@hugogva @maxwill-max @Reikagilu Just use this repo instead it's way easier to use and has alot more functionality: https://github.com/J-CITY/tinyWinToast
i want to know if i can, and how i can change the name of program in the notification center