Re: [python-win32] timeout in DDE function call

2009-07-21 Thread Patrick Janssen
Hi all, We are still struggling to find a solution to this DDE timeout problem. I came across some sites talking about asynchronous DDE with callback functions. With this approach, the the DDE server executes a callback function when it has finished processing its long job. Does anyone know if th

Re: [python-win32] EOFError in gencache.py

2009-07-21 Thread Paul Hudson
Hi, I am having a similar problem when launching multiple instances of an Application that allows Python scripting via COM. (Yes, I am launching these instances at the same time.) The error I get is: File "C:\Python26\Lib\site-packages\win32com\client\makepy.py", line 288, in GenerateFromType

[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

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

2009-07-21 Thread reehdus
I tried that but I get stuck at EnumProcessModules. It tells me my access is denied. I'm not sure if I'm doing it right. My code is below: import win32gui import win32api import win32con from time import sleep import win32process sleep(2) name = win32gui.GetForegroundWindow() t,p = win32process.