[python-win32] Getting a list of "task buttons" or tasks/windows in the "alt-tab" list?

2010-01-13 Thread Lincoln Yeoh
Hi, With python win32 is there a way to get only the windows that are represented by the buttons of the Windows taskbar (or the windows listed in the "alt-tab" list)? I have found various ways of doing so, but I can't seem to get them to work with Excel's windows. From what I observe (I ma

Re: [python-win32] Getting a list of "task buttons" or tasks/windows in the "alt-tab" list?

2010-01-15 Thread Lincoln Yeoh
At 02:32 AM 1/14/2010, Lincoln Yeoh wrote: If three Excel documents are opened, there are four top level Excel windows (or at least they appear to be top level to me) - the main, and three MS-SDIb ones. But the taskbar and alt-tab list only show 3 items. What logic should one use to create

Re: [python-win32] Getting a list of "task buttons" or tasks/windows in the "alt-tab" list?

2010-01-24 Thread Lincoln Yeoh
k. At 02:32 AM 1/14/2010, Lincoln Yeoh wrote: Hi, With python win32 is there a way to get only the windows that are represented by the buttons of the Windows taskbar (or the windows listed in the "alt-tab" list)? I have found various ways of doing so, but I can't seem to

Re: [python-win32] WMI troubles!

2010-01-24 Thread Lincoln Yeoh
Hi, Coincidentally I'm using the hotkey code from Tim's url and it works quite well. But I'm not sure which is better: user32.GetMessageA or user32.GetMessageW (along with the corresponding user32.DispatchMessageA or user32.DispatchMessageW of course). Regards, Link. At 04:31 AM 1/16/20

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-11 Thread Lincoln Yeoh
At 09:19 PM 3/9/2010, pyt...@bdurham.com wrote: I'm looking for simple ways to monitor and limit the number of instances of our Python application that gets run on our in-house Terminal Servers (2003 and 2008). The purpose of this restriction is to make sure we don't overload our servers. Thi

[python-win32] Python Windows Service and registering for preshutdown?

2012-02-06 Thread Lincoln Yeoh
Hi, Is it easy to create a python windows service that registers for the preshutdown event[1]? Basically I would like a window service that will help shutdown .Net (and possibly other) services in the right order. Because: http://connect.microsoft.com/VisualStudio/feedback/details/641737/ad

Re: [python-win32] Anti-reverse Python-based binaries?

2012-02-11 Thread Lincoln Yeoh
You can't protect any binary from being reversed either. The CPU has to execute it. The antivirus and antimalware people reverse stuff all the time[1]. There are only a few good reasons to obfuscate the python code: 1) Embarassing/bad/evil code/comments. 2) you're in the US or similar and want