[Tutor] Activate window

Magnus Lycka magnus@thinkware.se
Mon Oct 21 19:48:01 2002


At 20:54 2002-10-21 +0000, Terje Johan Abrahamsen wrote:
>I have been playing around with the Win32com modules and transfer info=20
>back and forth between the different MS Office applications. But, I=20
>haven't found the way to activate an application. I do not mean, start it,=
=20
>but to bring it to front. Lets say that I have Word and Excel, and move=20
>info back and forth. Then after that is done, I would like to make Excel=20
>the active window so I can type myself there, without having to mouseclick=
=20
>on it. This regardless of Word was the active window that I last used. Is=
=20
>there any easy way to do this?

You might try the python-win32 mailing list for this.
http://mail.python.org/mailman/listinfo/python-win32

I thought that maybe

xlApp.Visible =3D 0
xlApp.Visible =3D 1

would bring it to top, but that doesn't seem to work...


--=20
Magnus Lyck=E5, Thinkware AB
=C4lvans v=E4g 99, SE-907 50 UME=C5
tel: 070-582 80 65, fax: 070-612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se