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}')
>
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
> 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
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
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,
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