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

2009-07-20 Thread Roger Upole
A sequence like this should get you there. win32gui.GetForegroundWindow win32process.GetWindowThreadProcessId win32api.OpenProcess win32process.EnumProcessModules win32process.GetModuleFileNameEx hth Roger ___ python-win32 mailing list pyth

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

2009-07-20 Thread sudheer sivathasan
Hi guys, Normally I’m able to find the answers I’m looking for on the net…but this time, either I haven’t searched hard enough or no one has attempted this before, so I would really like to request some help with this. I’m trying to write a program to locate the directory of the .exe of the