Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 787227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:10:07+00:00 2026-05-14T21:10:07+00:00

I have a GUI application which can create many similar windows on desktop. All

  • 0

I have a GUI application which can create many similar windows on desktop. All windows have same title. I have to enumerate all dialogs with same title and make some tests against each of such dialogs.

If I call:

dialog = app['Window Name']

pywinauto returns a WindowSpecification object which is useful along with accessing controls by name.

When I call:

dialogs = app.windows_(title='Window Name')

pywinauto returns me a list of HwndWrapper instances which are not so useful.

How to obtain a list of windows with specified title but as WindowSpecification objects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:10:08+00:00Added an answer on May 14, 2026 at 9:10 pm

    You can’t really. WindowSpecification is a single specification for all windows that match the criteria supplied.
    When you work with a WindowSpecification instance you are often interacting with an HwndWrapper instance that WindowSpecification is finding and accessing for you.

    So I think the answer is to work with the HwndWrapper’s returned by app.windows_() (similar to the single HwndWrapper returned by WindowSpecification.WrapperObject()

    Note – if you are always trying to narrow down the list of windows by looking at particular controls within a window – then using app[‘Window Name’][‘Unique Control Name’].Parent() should return the window.

    The main difference between WindowSpecification and HwndWrapper is that a WindowSpecification does not have to exist yet, while a HwndWrapper instance reflects a particular underlying windows handle. This allows WindowSpecification to implement code that waits for windows or checks if they exist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which displays properties dialogs for various GUI-accessible objects. Because there
I have a windows application which has a complex GUI that I would like
I have a GUI application which works with point cloud data and a quadtree
I have a win32 GUI (MFC) application which I need to port to a
Suppose I have a GUI-only application that runs on Windows and I'd like to
I want to use Qt to create a simple GUI application that can play
I am trying to write a Qt GUI application which can communicate with an
I have a C# (.net 3.5) desktop application which prints out some numbers on
I have application which consumes XML and based on this creates a GUI. Basically
I have an application, let's call it myapp.exe, which is dual-mode console/GUI, built as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.