Is it possible with python/win32 to query and remove all running internet
explorers (ie browsers)?
I have an automation package that requires no existing internet explorers to be
running. So I would like to call a python/win32 script to close out any ie
browser windows, then run the automation
Okay I figured out all the ides of all the IE Browser windows (thanks), but now
how do I send the WM_CLOSE to each id?
thanks
george
-Original Message-
From: Niki Spahiev [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 12:46 PM
To: George Flaherty
Cc:
Humm sorry guys let me be a bit more clear, I tried to run the this code, but
it doesn't close the window
Thanks
-george
import win32gui
import win32con
import string
def windowEnumerationHandler(hwnd, resultList):
if string.find(win32gui.GetWindowText(hwnd),Microsoft Internet
I've been Googling around for easiest way to do these three things
withoin a Python script:
- get a list of workgroups on LAN
- get a list of computers in workgroup
- get a list of shares of a computer
And i found next to nothing :(. The best I could do is try to use net
view and parse it's
Karlo Lozovina wrote:
I've been Googling around for easiest way to do these three things
withoin a Python script:
- get a list of workgroups on LAN
- get a list of computers in workgroup
- get a list of shares of a computer
And i found next to nothing :(. The best I could do is try to
You can loop thru the ShellWindows collection and kill them all:
import win32com.client
shellwindows_guid='{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'
for sw in win32com.client.Dispatch(shellwindows_guid):
sw.Quit()
Roger
___
Python-win32