<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1">hello,<br>
<br>
I launch an (Delphi) application with<br>
<br>
subprocess.Popen ( Application, shell=False )<br>
<br>
Then with a timer (100 msec), I'm trying to find the applications main
window,<br>
by looking for the formclass<br>
<br>
self.App_hwnd = win32gui.FindWindow ( self.Application_Form_Class,<br>
self.Application_Caption )<br>
<br>
so in the beginning, I'm getting hwnd =0,<br>
then after a while I get a nonzero hwnd,<br>
sometimes it's the correct one,<br>
sometimes not.<br>
<br>
In the latter case, looking for the hwnd for a second time, does return
the correct hwnd.<br>
<br>
Any explanation / solution ?<br>
<br>
thanks,<br>
Stef Mientki<br>
</font>
</body>
</html>