[python-win32] Getting a list of "task buttons" or tasks/windows in the "alt-tab" list?
Lincoln Yeoh
lyeoh at pop.jaring.my
Sun Jan 24 15:07:35 CET 2010
Anyway to answer my own question :).
Excel's main window has an "ITaskList_Deleted" window property if the
dummy windows exist.
Powerpoint behaves very similarly. And Kingsoft Office appears to do
something like that except without the ITaskList_Deleted window property.
Link.
At 02:32 AM 1/14/2010, Lincoln Yeoh wrote:
>Hi,
>
>With python win32 is there a way to get only the windows that are
>represented by the buttons of the Windows taskbar (or the windows
>listed in the "alt-tab" list)?
>
>I have found various ways of doing so, but I can't seem to get them
>to work with Excel's windows.
>
> From what I observe (I may be wrong though), Excel by default
> appears to have a main window and some "dummy windows"
> (classname=MS-SDIb) representing the opened Excel documents. If you
> click on those "dummy windows" the relevant excel document gets
> foregrounded in the _main_ window (not the dummy windows).
>
>If three Excel documents are opened, there are four top level Excel
>windows (or at least they appear to be top level to me) - the main,
>and three MS-SDIb ones. But the taskbar and alt-tab list only show 3
>items. What logic should one use to create the same list?
More information about the python-win32
mailing list