[python-win32] Re: getting a list of internet explorer instances?

2005-07-20 Thread Roger Upole
The MSDN docs are here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/shellwindows/shellwindows.asp Roger "Marcus Goldfish" wrote: >> import win32com.client >> sw=win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}') >

[python-win32] Re: constants problem

2005-07-20 Thread Roger Upole
For the constants to be available, you'll need to run makepy on the machines your script will run on. win32com.client.gencache.EnsureDispatch will create the generated file for an object if it doesn't already exist. Roger [EMAIL PROTECTED] wrote: > Hi, list: > > This is puzzling. For t

Re: [python-win32] getting a list of internet explorer instances?

2005-07-20 Thread Marcus Goldfish
> import win32com.client > sw=win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}') > for w in sw: >print w.LocationURL > > The GUID represents the ShellWindows class, found in > the makepy file for "microsoft internet controls". Yes, that helps a lot! Can you explain the ShellWi

Re: [python-win32] constants problem

2005-07-20 Thread kimwaic888-pythonwin32
Regarding my previous message, here's sample code I am using. It runs fine on my computer but not others. These computers have same versions of Word, Python, and Python-win32: from win32com.client import Dispatch, constants wordApp = Dispatch("Word.Application") print constants.wdTextWrap

[python-win32] constants problem

2005-07-20 Thread kimwaic888-pythonwin32
Hi, list: This is puzzling. For the PythonWin32 based Word script I developed, everything works fine on my machine. However, when I run the script on another machine, it would fail whenever it comes across any of the constants variables (such as, for example, constants.wdLine, constants.wdStory,

[python-win32] Re: getting a list of internet explorer instances?

2005-07-20 Thread Roger Upole
import win32com.client sw=win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}') for w in sw: print w.LocationURL The GUID represents the ShellWindows class, found in the makepy file for "microsoft internet controls". hth Roger "Marcus Goldfish" wrote: > I've seen so