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
Awesome, looks like what I need is
wmi.WMI().Win32_Process.watch_for('creation', name='notepad.exe')
Thanks!
On Wed, Apr 25, 2018 at 4:27 PM, Dennis Lee Bieber
wrote:
> On Wed, 25 Apr 2018 15:26:37 +0300, Ram Rachum declaimed
> the following:
>
> >
> >I
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