[python-win32] handle is invalid?

2009-07-21 Thread sudheer sivathasan
Hey guys, Another quick question. I'm still trying to do the thing in the email below. But this time im trying to use the win32api.GetModuleFileName function. It requires a PyHandle as an input which I think I've managed to get by using the function handle = w.FindWindow(0,str(w.GetWindowTe

[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