[python-win32] How to use GetProperty and PutProperty COM interface in IE?

Tim Roberts timr at probo.com
Thu May 31 02:03:03 CEST 2007


Richard Bell wrote:
> I'm having trouble using the GetProperty and PutProperty COM interfaces with
> IE.  ...
>>>> ie.Height = 600
>>>>         
>
> Actually changes IE's height.
>
>   
>>>> ie.Height
>>>>         
> 600
> Reports it.
> But ...
>   
>>>> print ie.GetProperty('Height')
>>>>         
> None
> And ...
>
>   
>>>> print ie.PutProperty('Height', 400) 
>>>>         
> None
> Does nothing.
>
> Any clues how to use the GetProperty and PutProperty methods?
>   

I may be mistaken, but from my reading of the documents, GetProperty and
PutProperty are intended to pass property information to the web page
currently being displayed, not as an alternate method of manipulating
the properties of the IE object itself.

    http://msdn2.microsoft.com/en-us/library/ms976136.aspx

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list