473,411 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Problems with win32com and IE, WindowState

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
1 1904
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mb3242 | last post by:
Hello, I'm trying to use win32com to call a method in a COM object. I'm having a problem with Python choosing the wrong type when wrapping up lists into VARIANTs. The function I'm trying to call...
12
by: E Goforth | last post by:
Hello, I have a VB6 app that calls a VB.NET app via named pipes and a third party component. Inside the VB.NET app I'm trying to force a form to the top, at least temporarily. Inside a form's...
0
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way...
2
by: jp2group | last post by:
I have a Main Form that hides in the Task Bar Tray as an Icon until one of the Tray Icon's Menu Items is selected. (think of your antivirus program running there) The program starts up fine and...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.