On Tue, Jun 24, 2008 at 3:25 PM, John Chandler <[EMAIL PROTECTED]> wrote:
> Below is a bit of code that should work, you might want to change ieregex
> because right now it will close anything that has "Microsoft Internet
> Explorer" in the title bar. Have fun.

The simplest way to do this is use whatever your "title" of the page
is. For example, if in your HTML doc you had this:

<head>
<title>Some Random Doc</title>
</head>

then you could use this:

winhandle = FindWindow(None, "Some Random Doc")
and call the close on that winhandle.

HTH,
Wayne
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to