Re: [python-win32] Trying to grab exe of foreground window

2009-07-23 Thread Tim Roberts
reehdus wrote: > > I see...I tried looking for documentation onw win32con to see what I > needed but I couldn't muster up anything. All i got were > win32con.PROCESS_TERMINATE and process query information so I assumed one of > this was what I needed. Again...thanks so much for enlightening

Re: [python-win32] trying to grab exe of foreground window

2009-07-23 Thread Eric Blade
I've done some pretty extensive work with determining name of executeables belonging to a window by Window Handle .. and here's what I've come up with ,that seems to work 100% of the time, even on Vista: # Request privileges to enable "debug process", so we can later use PROCESS_VM_READ, r