By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

Problems with win32com and IE, WindowState

P: n/a
Background: I am a newbe trying to store the state of an Internet
Explorer Application with the use of win32.com and python. I use
python 2.3.

Problem 1: The state is accessible, but not the hole state. I am
missing the possibility to retrieve if the IE is minimized or not,
also known as WindowState for word application. This could be found by
detecting that the value of top and left is -32000, but will not help
me in restoring the value to its old value. I wish to find the
WindowState for the IE object and if the object is minimized I would
like to get the Top and Left position of the object if restored.

Code:
import win32com.client
ie=win32com.client.Dispatch('InternetExplorer.Appl ication')
ie.Visible=1

Problem 2: Would like to find out if the favourites toolbar is open or
not. I can not find out how to retrieve this property.

Thanks in advance.
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jan H wrote:

Background: I am a newbe trying to store the state of an Internet
Explorer Application with the use of win32.com and python. I use
python 2.3.

Problem 1: The state is accessible, but not the hole state. I am
missing the possibility to retrieve if the IE is minimized or not,
also known as WindowState for word application. This could be found by
detecting that the value of top and left is -32000, but will not help
me in restoring the value to its old value. I wish to find the
WindowState for the IE object and if the object is minimized I would
like to get the Top and Left position of the object if restored.

Code:
import win32com.client
ie=win32com.client.Dispatch('InternetExplorer.Appl ication')
ie.Visible=1

Problem 2: Would like to find out if the favourites toolbar is open or
not. I can not find out how to retrieve this property.


These sound much more like IE- and Windows-specific questions than
anything to do with Python specifically. I'd suggest checking the
Microsoft msdn pages for more information about the object model
in question, since anything you find there should apply equally
well to Python as it does to VB or C#.

-Peter
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.