Re: [Tutor] closing a internet explorer com object

2008-06-26 Thread W W
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 w

Re: [Tutor] closing a internet explorer com object

2008-06-24 Thread John Fouhy
On 25/06/2008, Jeff Peery <[EMAIL PROTECTED]> wrote: > hello, > I'm using internet explorer to print out html documents and I'm not sure how > to close it once it is created. How do I do this? below is the simple bit of > code I use to print documents. > > ie = > win32com.client.Dispatch("I

Re: [Tutor] closing a internet explorer com object

2008-06-24 Thread John Chandler
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. import win32con import win32gui import win32process import re def getHwnds(): def callback(hwnd, hwnds):

[Tutor] closing a internet explorer com object

2008-06-24 Thread Jeff Peery
hello, I'm using internet explorer to print out html documents and I'm not sure how to close it once it is created. How do I do this? below is the simple bit of code I use to print documents. thanks! Jeff ie = win32com.client.Dispatch("InternetExplorer.Application")