[python-win32] activate an opened window

belaqziz salwa belasalwa at yahoo.fr
Thu Apr 23 19:47:17 CEST 2009


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 <timr at probo.com> a écrit :

De: Tim Roberts <timr at probo.com>
Objet: Re: [python-win32] activate an opened window
À: "Python-Win32 List" <python-win32 at 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, timr at probo.com
Providenza & Boekelheide, Inc.

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



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090423/59fe5fb5/attachment.htm>


More information about the python-win32 mailing list