Re: Using win32com for ToastNotificationManager
Mark Hammond <[email protected]> Sun, 7 Jul 2024 21:16:19 -0400
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============4457915414629246658== Content-Type: multipart/alternative; boundary="------------tfyQArmfXoXqBg1G7GHEO9LF" Content-Language: en-US This is a multi-part message in MIME format. --------------tfyQArmfXoXqBg1G7GHEO9LF Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit If it is possible it would not be at all straight-forward :( It doesn't look like these objects expose IDispatch, which is what we would need. winrt probably is your best bet. Cheers On 2024-07-05 2:24 p.m., Patrik Dufresne wrote: > Hello, > > Is it possible to use win32com/pythoncom to instantiate a > ToastNotificationManager. Looking at the registry is seams all the > interface is registered using a GUID, but I'm not familiar enough to > know exactly how to create an instance of the ToastNotificationManager > using python. > > I've already had a look at winrt and winsdk that provide binding for > winrt, but my application is required to be as small as possible and > the library is 30Mib when installed. I also want to minimize the > number of dependencies in my application, leveraging pywin32 make more > sense for me. > > Thanks for helping. > > > -- > IKUS Software > https://www.ikus-soft.com/ > 514-971-6442 > St-Colomban, QC J5K 1T9 > > _______________________________________________ > python-win32 mailing list > [email protected] > https://mail.python.org/mailman/listinfo/python-win32 --------------tfyQArmfXoXqBg1G7GHEO9LF Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>If it is possible it would not be at all straight-forward :( It doesn't look like these objects expose IDispatch, which is what we would need. winrt probably is your best bet.</p> <p>Cheers<br> </p> <div class="moz-cite-prefix">On 2024-07-05 2:24 p.m., Patrik Dufresne wrote:<br> </div> <blockquote type="cite" cite="mid:CAM=_CK45FiEWGqtigUU12oeoSg_tbNiAGbkEC8hKo=noUPwyKA@mail.gmail.com"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="ltr"> <div>Hello,</div> <div><br> </div> <p style="margin:0px;text-indent:0px;line-height:115%;white-space:pre-wrap"><span style="color:rgb(0,0,0)">Is it possible to use win32com/pythoncom to instantiate a ToastNotificationManager. Looking at the registry is seams all the interface is registered using a GUID, but I'm not familiar enough to know exactly how to create an instance of the ToastNotificationManager using python.</span></p> <p style="margin:0px;text-indent:0px;line-height:115%;color:rgb(0,0,0);white-space:pre-wrap"> </p> <p style="margin:0px;text-indent:0px;line-height:115%;white-space:pre-wrap"><span style="color:rgb(0,0,0)">I've already had a look at winrt and winsdk that provide binding for winrt, but my application is required to be as small as possible and the library is 30Mib when installed. I also want to minimize the number of dependencies in my application, leveraging pywin32 make more sense for me.</span></p> <p style="margin:0px;text-indent:0px;line-height:115%;color:rgb(0,0,0);white-space:pre-wrap"> </p> <p style="margin:0px;text-indent:0px;line-height:115%;white-space:pre-wrap"><span style="color:rgb(0,0,0)">Thanks for helping.</span></p> <div><br> <span class="gmail_signature_prefix">-- </span><br> <div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"> <div dir="ltr"> <div dir="ltr"> <div>IKUS Software<br> </div> <div><a href="https://www.ikus-soft.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://www.ikus-soft.com</a>/<br> <div> <div>514-971-6442</div> <div>St-Colomban, QC J5K 1T9</div> </div> </div> </div> </div> </div> </div> </div> <br> <fieldset class="moz-mime-attachment-header"></fieldset> <pre wrap="" class="moz-quote-pre">_______________________________________________ python-win32 mailing list <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-win32">https://mail.python.org/mailman/listinfo/python-win32</a> </pre> </blockquote> </body> </html> --------------tfyQArmfXoXqBg1G7GHEO9LF-- --===============4457915414629246658== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32 --===============4457915414629246658==--