On May 27, 2018, at 10:19 PM, Ram Rachum <r...@rachum.com> wrote: > > Oh, that sounds heavy. I guess I'm back to polling. Any idea how to do this > with polling?
It would be easy with polling. You'd use EnumWindows to go through the list of all top-level windows, GetWindowText to get the window title, GetWindowThreadProcessId to convert the window handle to a process ID. You may not actually need the process ID. You could just send a WM_CLOSE message to the window. Unless the process is trying to protect itself, that's usually enough. — Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32