From matteo.boscolo at omniasolutions.eu Mon Jul 16 11:46:33 2018 From: matteo.boscolo at omniasolutions.eu (Matteo Boscolo) Date: Mon, 16 Jul 2018 17:46:33 +0200 Subject: [python-win32] Dispatch multi instance of the some com server Message-ID: <298322b3-0f61-e4e1-9f68-6914c2d078d2@omniasolutions.eu> Hi All, we have an issues with our com server (exe) . we dispatch it with dispatchEx to be sure that every time we dispatch it a new instance of the com server will be created. but it dose not work. when we dispatchex it the program get the live instance instead of creating a new one. I know that there is some registry setting to tell to windows that he have to create each time a new instance .. but I can't find any hint on the web. any help will be very appreciated regards, Matteo -- *OmniaSolutions* /*Matteo Boscolo* Technical Manager/ Cell. +39.327.1525045 Fax. +39.041.8623730 tech at omniasolutions.eu Skype: matteo.boscolo -------------- next part -------------- An HTML attachment was scrubbed... URL: From timr at probo.com Tue Jul 17 13:40:49 2018 From: timr at probo.com (Tim Roberts) Date: Tue, 17 Jul 2018 10:40:49 -0700 Subject: [python-win32] Dispatch multi instance of the some com server In-Reply-To: <298322b3-0f61-e4e1-9f68-6914c2d078d2@omniasolutions.eu> References: <298322b3-0f61-e4e1-9f68-6914c2d078d2@omniasolutions.eu> Message-ID: Matteo Boscolo wrote: > we have an issues with our com server (exe) . > > we dispatch it with dispatchEx to be sure that every time we dispatch > it a new instance of the com server will be created. > > but it dose not work. > > when we dispatchex it the program get the live instance instead of > creating a new one. > Why?? I know you weren't asking for a design review, but it seems like a serious design flaw if you cannot handle multiple requests with a single instance.? That's a big part of COM -- an easy way to have a server that handles multiple clients. -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. From ram at rachum.com Wed Jul 18 12:31:32 2018 From: ram at rachum.com (Ram Rachum) Date: Wed, 18 Jul 2018 19:31:32 +0300 Subject: [python-win32] Using WMI to listen to window creation and destruction Message-ID: Hello, I'd like to use the `wmi` module to be notified on the events of a window being created or destroyed. Is this possible? I looked at the tutorial and cookbook and could find many interesting things, but not that. Thanks, Ram. -------------- next part -------------- An HTML attachment was scrubbed... URL: From timr at probo.com Wed Jul 18 14:45:41 2018 From: timr at probo.com (Tim Roberts) Date: Wed, 18 Jul 2018 11:45:41 -0700 Subject: [python-win32] Using WMI to listen to window creation and destruction In-Reply-To: References: Message-ID: Ram Rachum wrote: > > I'd like to use the `wmi` module to be notified on the events of a > window being created or destroyed. Is this possible? I looked at the > tutorial and cookbook and could find many interesting things, but not > that. I don't think WMI provide information about windows, although admittedly I've underestimated WMI in the past.? If you have evidence to the contrary, please correct me. However, I'm pretty sure what you said is not really what you meant.? Remember that every control, every button, every textbox, every icon -- really, every visible thing is a separate window.? You'd get thousands of hits.? Are you really looking to monitor the creation of new top-level windows, which means the creation of new processes?? Because WMI DOES provide information about processes. If you do want to find out about windows, you'd need to use a Windows hook. -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. From ram at rachum.com Wed Jul 18 15:14:12 2018 From: ram at rachum.com (Ram Rachum) Date: Wed, 18 Jul 2018 22:14:12 +0300 Subject: [python-win32] Using WMI to listen to window creation and destruction In-Reply-To: References: Message-ID: "Are you really looking to monitor the creation of new top-level windows, which means the creation of new processes?" Does that apply to explorer windows? (i.e. when you open a new folder.) Because that's what I'd like to listen to. On Wed, Jul 18, 2018 at 9:45 PM, Tim Roberts wrote: > Ram Rachum wrote: > > > > I'd like to use the `wmi` module to be notified on the events of a > > window being created or destroyed. Is this possible? I looked at the > > tutorial and cookbook and could find many interesting things, but not > > that. > > I don't think WMI provide information about windows, although admittedly > I've underestimated WMI in the past. If you have evidence to the > contrary, please correct me. > > However, I'm pretty sure what you said is not really what you meant. > Remember that every control, every button, every textbox, every icon -- > really, every visible thing is a separate window. You'd get thousands > of hits. Are you really looking to monitor the creation of new > top-level windows, which means the creation of new processes? Because > WMI DOES provide information about processes. > > If you do want to find out about windows, you'd need to use a Windows hook. > > -- > Tim Roberts, timr at probo.com > Providenza & Boekelheide, Inc. > > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From timr at probo.com Wed Jul 18 17:23:02 2018 From: timr at probo.com (Tim Roberts) Date: Wed, 18 Jul 2018 14:23:02 -0700 Subject: [python-win32] Using WMI to listen to window creation and destruction In-Reply-To: References: Message-ID: <6d52f2bd-db1b-d1c9-74d9-df47485b4170@probo.com> Ram Rachum wrote: > "Are you really looking to monitor the creation of new?top-level > windows, which means the creation of new processes?" > > Does that apply to explorer windows? (i.e. when you open a new > folder.) Because that's what I'd like to listen to. No.? Those are just subwindows opened within the Explorer process. What are you REALLY trying to do?? What's the overall goal?? Explorer has an extensive shell extension interface that let you participate in many actions, but opening new folders is not one of them. ??? https://msdn.microsoft.com/en-us/library/windows/desktop/cc144067 Remember, you can open a new folder without opening a new window -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. From ram at rachum.com Thu Jul 19 01:01:06 2018 From: ram at rachum.com (Ram Rachum) Date: Thu, 19 Jul 2018 08:01:06 +0300 Subject: [python-win32] Using WMI to listen to window creation and destruction In-Reply-To: <6d52f2bd-db1b-d1c9-74d9-df47485b4170@probo.com> References: <6d52f2bd-db1b-d1c9-74d9-df47485b4170@probo.com> Message-ID: I'm trying to make a script that goes to recently opened folders, by listening to which folders were opened and closed. I guess I'll use good old EnumWindows. Thanks for your help Tim. On Thu, Jul 19, 2018 at 12:23 AM, Tim Roberts wrote: > Ram Rachum wrote: > > "Are you really looking to monitor the creation of new top-level > > windows, which means the creation of new processes?" > > > > Does that apply to explorer windows? (i.e. when you open a new > > folder.) Because that's what I'd like to listen to. > > No. Those are just subwindows opened within the Explorer process. > > What are you REALLY trying to do? What's the overall goal? Explorer > has an extensive shell extension interface that let you participate in > many actions, but opening new folders is not one of them. > > https://msdn.microsoft.com/en-us/library/windows/desktop/cc144067 > > Remember, you can open a new folder without opening a new window > > -- > Tim Roberts, timr at probo.com > Providenza & Boekelheide, Inc. > > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matteo.boscolo at omniasolutions.eu Thu Jul 19 08:10:56 2018 From: matteo.boscolo at omniasolutions.eu (Matteo Boscolo) Date: Thu, 19 Jul 2018 14:10:56 +0200 Subject: [python-win32] Dispatch multi instance of the some com server In-Reply-To: References: <298322b3-0f61-e4e1-9f68-6914c2d078d2@omniasolutions.eu> Message-ID: <10b3fbe7-146c-27ec-d652-2d81200cb367@omniasolutions.eu> Matteo Boscolo wrote: >> we have an issues with our com server (exe) . >> >> we dispatch it with dispatchEx to be sure that every time we dispatch >> it a new instance of the com server will be created. >> >> but it dose not work. >> >> when we dispatchex it the program get the live instance instead of >> creating a new one. >> > Why?? I know you weren't asking for a design review, but it seems like a > serious design flaw if you cannot handle multiple requests with a single > instance.? That's a big part of COM -- an easy way to have a server that > handles multiple clients. > we work with cad programs win32com dose not unlock well the safe array. for this problem we chose to create a com server (exe) , so when we finished to use it we kill the process and release the memory of the safe arrays. for this we need to force our com server to allow just one instance. regards, Matteo *OmniaSolutions* /*Matteo Boscolo* Technical Manager/ Cell. +39.327.1525045 Fax. +39.041.8623730 tech at omniasolutions.eu Skype: matteo.boscolo -------------- next part -------------- An HTML attachment was scrubbed... URL: From aravinda at syzygyenterprise.com Tue Jul 24 09:03:12 2018 From: aravinda at syzygyenterprise.com (=?UTF-8?Q?Aravind?=) Date: Tue, 24 Jul 2018 13:03:12 +0000 Subject: [python-win32] Issue on getting activesheet on win 8 and Win 8+ OS systems References: Message-ID: <01000164cc62ec62-6c17b91d-b9a8-4613-b033-1a2ed7b52f09-000000@email.amazonses.com> Hi,? ? ? ?We are facing issues on getting active sheet values while running python3 code using win32. ? Problem occurs only running on windows 8 and Windows 8+ OS PC's. ? Here I attached the screenshot of my error?and piece of code which i execute. ? We need your guidance and support to fix this issue. ? Thanks in advance, ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error.jpg Type: image/jpeg Size: 212747 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sample.py URL: From timr at probo.com Tue Jul 24 17:35:51 2018 From: timr at probo.com (Tim Roberts) Date: Tue, 24 Jul 2018 14:35:51 -0700 Subject: [python-win32] Issue on getting activesheet on win 8 and Win 8+ OS systems In-Reply-To: <01000164cc62ec62-6c17b91d-b9a8-4613-b033-1a2ed7b52f09-000000@email.amazonses.com> References: <01000164cc62ec62-6c17b91d-b9a8-4613-b033-1a2ed7b52f09-000000@email.amazonses.com> Message-ID: Aravind wrote: > Issue on getting activesheet on win 8 and Win 8+ OS systems > > ? ?We are facing issues on getting active sheet values while running > python3 code using win32. > > ? > > Problem occurs only running on windows 8 and Windows 8+ OS PC's. > > ? > > Here I attached the screenshot of my error?and piece of code which i > execute. > Are you actually opening a file?? Does the file open correctly?? Is it possible the workbook isn't open yet by the time you query it?? Are you running as the logged in user, or is this a service? -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. From aravinda at syzygyenterprise.com Thu Jul 26 00:32:49 2018 From: aravinda at syzygyenterprise.com (=?UTF-8?Q?Aravind?=) Date: Thu, 26 Jul 2018 04:32:49 +0000 Subject: [python-win32] Issue on getting activesheet on win 7+ OS systems References: Message-ID: <01000164d4dc5ddf-99f0d1e9-b3c6-45f5-aa65-4928a8011d73-000000@email.amazonses.com> Hi,? ? ? ?We are facing issues on getting active sheet values while running python3 code using win32. ? Problem occurs only running on windows 8 and Windows 8+ OS PC's. ? Here I attached the screenshot of my error?and piece of code which i execute. ? We need your guidance and support to fix this issue. ? Thanks in advance, ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error.jpg Type: image/jpeg Size: 212747 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sample.py URL: