[python-win32] Wait for process to be started

Tim Roberts timr at probo.com
Wed Apr 25 15:58:36 EDT 2018


Ram Rachum wrote:
>
> I'm writing a Python program on Windows 7. I want the program to
> patiently wait for a process to be started that has a certain name,
> and then do an action after it was started.
>
> I can easily write the program using polling, i.e. checking every
> second whether the process is active, but I want to be more efficient
> and wait on the system event that is generated when a process is
> started. Is that possible?

Is this a process you are starting?  If YOU start the process, you get a
handle that you can wait on

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list