From mujeeb.adil at gmail.com Sat Aug 1 16:19:35 2020 From: mujeeb.adil at gmail.com (Adil Mujeeb) Date: Sun, 2 Aug 2020 00:19:35 +0400 Subject: [python-win32] Licensing requirement for usage of win32com APIs through python package (pywin32) Message-ID: Hi, For my project work / application testing, instead of doing it manually i am trying to automate it. I want to use win32com APIs through python package (pywin32). What is the license clause if this python script will be used to test a commercial Application development? There are two aspects: 1. Usage of win32com APIs (of course running machine has valid Microsoft softwares) 2. Usage of python package (pywin32) inside my test script. On https://pypi.org/project/pywin32/ it mention as "OSI Approved :: Python Software Foundation License" for pywin32. My understanding is that it allows me to use it without any acknowledgement required as I am just using the package. OR if required, i can acknowledge in my testing pacakge about usage of pywin32 package and to do so, what license file should i copy in my testing package? I wanted to be sure that this allows in creating scripts to test commercial product and if internally allows Microsoft license. Regards, Adil -------------- next part -------------- An HTML attachment was scrubbed... URL: From hylstonnb at gmail.com Sun Aug 2 02:57:44 2020 From: hylstonnb at gmail.com (Hylston N. Barbosa) Date: Sun, 2 Aug 2020 03:57:44 -0300 Subject: [python-win32] Question about DDE Advise mode Message-ID: Hi all, I would like to know if pywin32 supports the method conversation.advise or only conversation.request? If only has request, is there any other library you may know that supports advise? Thank you! -- Hylston Natann -------------- next part -------------- An HTML attachment was scrubbed... URL: From mujeeb.adil at gmail.com Sun Aug 2 15:48:24 2020 From: mujeeb.adil at gmail.com (Adil Mujeeb) Date: Sun, 2 Aug 2020 23:48:24 +0400 Subject: [python-win32] Licensing requirement for usage of win32com APIs through python package (pywin32) In-Reply-To: References: Message-ID: I couldnt see my question in https://mail.python.org/pipermail/python-win32/ I am not sure if it gets delivered or not. Regards, Adil On Sun, Aug 2, 2020 at 12:19 AM Adil Mujeeb wrote: > Hi, > > For my project work / application testing, instead of doing it manually i > am trying to automate it. I want to use win32com APIs through python > package (pywin32). > > What is the license clause if this python script will be used to test a > commercial Application development? > > There are two aspects: > > 1. Usage of win32com APIs (of course running machine has valid Microsoft > softwares) > 2. Usage of python package (pywin32) inside my test script. On > https://pypi.org/project/pywin32/ it mention as "OSI Approved :: Python > Software Foundation License" for pywin32. My understanding is that it > allows me to use it without any acknowledgement required as I am just using > the package. OR if required, i can acknowledge in my testing pacakge about > usage of pywin32 package and to do so, what license file should i copy in > my testing package? > > I wanted to be sure that this allows in creating scripts to test > commercial product and if internally allows Microsoft license. > > Regards, > Adil > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skippy.hammond at gmail.com Sun Aug 2 21:55:35 2020 From: skippy.hammond at gmail.com (Mark Hammond) Date: Mon, 3 Aug 2020 11:55:35 +1000 Subject: [python-win32] Question about DDE Advise mode In-Reply-To: References: Message-ID: <2b7c7402-7a70-cbb5-201a-e35000df2ae3@gmail.com> I'm afraid I can't remember almost anything about DDE :) I suggest you find the modules and examples to determine this. Cheers, Mark On 2/08/2020 4:57 pm, Hylston N. Barbosa wrote: > Hi all, > > I would like to know if pywin32 supports the method conversation.advise > or only conversation.request? > > If only has request, is there any other library you may know that > supports?advise? > > Thank you! > > -- > > Hylston Natann > > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > From timr at probo.com Mon Aug 3 00:07:53 2020 From: timr at probo.com (Tim Roberts) Date: Sun, 2 Aug 2020 21:07:53 -0700 Subject: [python-win32] Licensing requirement for usage of win32com APIs through python package (pywin32) In-Reply-To: References: Message-ID: On Aug 2, 2020, at 12:48 PM, Adil Mujeeb wrote: > > I couldnt see my question in https://mail.python.org/pipermail/python-win32/ > I am not sure if it gets delivered or not. You waited less than 30 minutes before complaining. Mailing lists take longer than that. > On Sun, Aug 2, 2020 at 12:19 AM Adil Mujeeb > wrote: > > What is the license clause if this python script will be used to test a commercial Application development? The license does not change based upon what you?re writing. If you?re not releasing this to the public, then the license is totally irrelevant. You can do whatever you want internally. > I wanted to be sure that this allows in creating scripts to test commercial product and if internally allows Microsoft license. How does a Microsoft license get involved? I think you?re worrying more than you need to here. ? Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrhat2010 at googlemail.com Tue Aug 4 17:53:48 2020 From: mrhat2010 at googlemail.com (Mr Hat) Date: Tue, 4 Aug 2020 23:53:48 +0200 Subject: [python-win32] Getting web credentials in Win10 with pywin32 Message-ID: Hi, I just started using python on Win10 (I'm a linux native) and wanted to store and retrive web credentials like vauldcmd.exe would, but I'm hitting a wall. Maybe I'm just to stupid to understand the api, but has anyone already done this? My guess was using wincred.CredEnumerate() and than searching for the right credentials, but I didn't find any, which I could easily list with vaultcmd.exe. Thanks in advance. From kearnssoftware at gmail.com Sat Aug 8 21:19:38 2020 From: kearnssoftware at gmail.com (Robert Kearns) Date: Sat, 8 Aug 2020 19:19:38 -0600 Subject: [python-win32] Setting service exit code on stop Message-ID: Hello all, I am having a look through the C++ source code (in particular win32/src/PythonService.cpp), trying to deduce a way to have the Python service set the exit code on stop. It appears that on a successful stop, both exit codes (svc and win32) are set to 0, overriding any previously set value. Does anyone know of any way around this? If not, would this be a welcome feature request? Best regards, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From skippy.hammond at gmail.com Sun Aug 9 21:08:29 2020 From: skippy.hammond at gmail.com (Mark Hammond) Date: Mon, 10 Aug 2020 11:08:29 +1000 Subject: [python-win32] Setting service exit code on stop In-Reply-To: References: Message-ID: Do you mean the process exit code? There's no direct way to influence that, although you can probably just arrange to kill your own process - you'll need to manually ensure you've set the service status before you do this. See also https://github.com/mhammond/pywin32/issues/1563 where there's a request for something slightly different (specifically, for pywin32 to *not* update the status as STOPPED on an exception so Windows sees it as an abnormal exit) - but the work-around there is similar - just kill your own process. A feature request would be fine, but a PR would be even better ;) Te feature request would need to be a very concrete proposal. Cheers, Mark On 9/08/2020 11:19 am, Robert Kearns wrote: > Hello all, > > I am having a look through the C++ source code (in > particular win32/src/PythonService.cpp), trying to deduce a way to have > the Python service set the exit code on stop. > > It appears that on a successful stop, both exit codes (svc and win32) > are set to 0, overriding any previously set value. > > Does anyone know of any way around this? If not, would this be a welcome > feature request? > > Best regards, > Rob > > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > From bernd.kappenberg at gmx.de Mon Aug 10 20:36:06 2020 From: bernd.kappenberg at gmx.de (Bernd) Date: Tue, 11 Aug 2020 02:36:06 +0200 Subject: [python-win32] In Python and Windows environment how to supress certain key press and send some other key event for it In-Reply-To: References: Message-ID: Hi Krishnan, Did you finally solve your issue? Because I have the same problem: either my initial character appears on the screen before it is replaced by some other key event (False), or it does not appear on the screen, but then nothing will appear on the screen instead (True), i.e. the thread is completely blocked. I am using only pynput. Thanks, Bernd From m.abouelyazid at gmail.com Wed Aug 12 23:06:01 2020 From: m.abouelyazid at gmail.com (Mohamed Abdelhack) Date: Wed, 12 Aug 2020 22:06:01 -0500 Subject: [python-win32] Embedding Login and Impersonation into Django Message-ID: Hi everyone, I am currently building a webapp using Django that will run onto a windows server that comprises an MS SQL server that uses windows authentication. I was unable to make IIS or Apache pass on the user identity to Django (probably double hopping) so I thought of implementing impersonation from within the app itself. I cannot make an account for the application pool itself for security reasons and I cannot switch to username password authentication for the same reasons. For that, I have a few questions to assess my options. - Is there an option in pywin32 to login an already authenticated user without reentering the password? Context: Django can make authentication requests to windows but cannot access the process itself so I thought to piggyback off of that. - Is there an option to keep the logged on/impersonated user rather than the handle getting destroyed? I noticed that after I log in, refreshing the page after causes the handle to be destroyed and login needs to be redone. Thank you very much, Best, Mohamed -------------- next part -------------- An HTML attachment was scrubbed... URL: From branhoff2 at gmail.com Mon Aug 24 02:13:13 2020 From: branhoff2 at gmail.com (Brandon Hoffman) Date: Sun, 23 Aug 2020 23:13:13 -0700 Subject: [python-win32] Add-in question: Pulling a list of Excel Add-ins Message-ID: Hi All, Thanks to everyone for their work maintaining the Pywin32 library. I use it often and it is so essential to so much of the automation I work I do. I'm reaching because I have a question, and no answers have come organically on Stackoverflow. Essentially, I'm wondering if there's a way to pull a list of excel add-ins with the library. I outline my question a bit more clearly in the stackoverflow post below: https://stackoverflow.com/questions/63456207/pull-list-of-com-add-ins-available-in-excel-w-python-library If you have any suggestions or can guide me on how I might explore this issue more thoroughly, it would be a great help. Kind regards, Brandon Hoffman -------------- next part -------------- An HTML attachment was scrubbed... URL: From haraldarminmassa at gmail.com Mon Aug 24 02:56:36 2020 From: haraldarminmassa at gmail.com (Harald Armin Massa[legacy]) Date: Mon, 24 Aug 2020 08:56:36 +0200 Subject: [python-win32] Add-in question: Pulling a list of Excel Add-ins In-Reply-To: References: Message-ID: Hi Brandon, useful search term to put into search engine is "excel object model list of addins" You can use this microsoft documentation https://docs.microsoft.com/en-us/office/vba/api/excel.addins and translate from VBA within Excel to Python and COM communication pywin32 is just an interface to COM, and you need information about the internal structures of Excel. Cheers Harald On Mon, 24 Aug 2020 at 08:28, Brandon Hoffman wrote: > Hi All, > > Thanks to everyone for their work maintaining the Pywin32 library. I use > it often and it is so essential to so much of the automation I work I do. > > I'm reaching because I have a question, and no answers have come > organically on Stackoverflow. Essentially, I'm wondering if there's a way > to pull a list of excel add-ins with the library. I outline my question a > bit more clearly in the stackoverflow post below: > > > https://stackoverflow.com/questions/63456207/pull-list-of-com-add-ins-available-in-excel-w-python-library > > If you have any suggestions or can guide me on how I might explore this > issue more thoroughly, it would be a great help. > > Kind regards, > > Brandon Hoffman > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > -- LightningTalkMan a brand of GHUM GmbH Spielberger Stra?e 49 70435 Stuttgart 0173/9409607 -------------- next part -------------- An HTML attachment was scrubbed... URL: