How to activate a new window in Python

Tim Golden tim.golden at tesco.net
Mon Jul 19 15:49:52 EDT 2004


Milon wrote:
> Hi all,
> 
> I am new to Python, and I just wrote a simple script to launch an
> application from the windows's start menu's run command.  (see code as
> follow)  There is an "OK" button on the new application I launched,
> but I can't get Python to click on it because the new window is not in
> focus and I read somewhere off the web that I need to activate the new
> window first before I can do anything on the new window.  I couldn't
> find any useful information off the web, so, can someone please show
> me how to do it?

[... snip example code ...]

Have a look at:

http://www.brunningonline.net/simon/blog/archives/000652.html

TJG



More information about the Python-list mailing list