[Tutor] closing a internet explorer com object
W W
srilyk at gmail.com
Thu Jun 26 17:22:32 CEST 2008
On Tue, Jun 24, 2008 at 3:25 PM, John Chandler <oldmantaggie at gmail.com> 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
More information about the Tutor
mailing list