Página 1 de 1
Determine Change focus to other Win application
Publicado: Vie Oct 27, 2006 6:44 am
por david fung
Q1. Is there a way to determine what is currently running ? (eg WinWord,
Excel), is so how ?
Q2. If Q1 is yes, is there any way to change focus to these application ?
Thanks.
David
Determine Change focus to other Win application
Publicado: Vie Oct 27, 2006 11:26 am
por jfgimenez
David,
> Q1. Is there a way to determine what is currently running ? (eg WinWord,
> Excel), is so how ?
Xailer doesn't provide a direct way to do that. You should review the
windows' API documentation (FindWindow or process related functions).
> Q2. If Q1 is yes, is there any way to change focus to these application ?
I suppose that when you get the window's handle of another application you
could call SetForegroundWindow() or any other related API function.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
Determine Change focus to other Win application
Publicado: Vie Oct 27, 2006 11:26 am
por jfgimenez
David,
> Q1. Is there a way to determine what is currently running ? (eg WinWord,
> Excel), is so how ?
Xailer doesn't provide a direct way to do that. You should review the
windows' API documentation (FindWindow or process related functions).
> Q2. If Q1 is yes, is there any way to change focus to these application ?
I suppose that when you get the window's handle of another application you
could call SetForegroundWindow() or any other related API function.
--
Regards,
Jose F. Gimenez
http://www.xailer.com