[python-win32] activate an opened window
timr at probo.com
Thu Apr 23 19:22:04 CEST 2009
belaqziz salwa wrote:
> how I can activate a window that is already opened, through its PID of
Are you saying you have the PID of a process, and you want to bring its
window to the top?
I don't know of any shortcut way to do that, but you could certainly
enumerate through all of the top-level windows using EnumWindows, then
call GetWindowThreadProcessId until you find a window that matches.
Remember that an application can have several top-level windows.
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32