it works with findTopWindow and _windowEnumerationHandler but only through the 
Command Prompt and I can not access it through my server by launching a URL

Thanks

 

--- En date de : Jeu 23.4.09, Tim Roberts <t...@probo.com> a écrit :

De: Tim Roberts <t...@probo.com>
Objet: Re: [python-win32] activate an opened window
À: "Python-Win32 List" <python-win32@python.org>
Date: Jeudi 23 Avril 2009, 18h22

belaqziz salwa wrote:
>
> how I can activate a window that is already opened, through its PID of
> process
>

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, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32



      
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to