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

  • Home
  • SEARCH
  • 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 7006747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:31:02+00:00 2026-05-27T21:31:02+00:00

I am developing automated testing tool type application in which it get window handle

  • 0

I am developing automated testing tool type application in which it get window handle and get all button from that application and display in my application and send message to all button randomly all is working good but problem with browse button. when it send message to the browse button it open browse file dialog box and now i want to select file randomly when it click browse button which are shown in that dialog but i don’t know how to make this possible?

so please any one can help me or give any simple example for this. i am new in visual c++ and windows API

Thanks.

  • 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-27T21:31:03+00:00Added an answer on May 27, 2026 at 9:31 pm

    Call EnumChildWindows. For each HWND that is passed to your callback function, call GetWindowText to discover the title of the window. The one labeled “Open” is the file-open dialog.

    You should also get familiar with Spy++ and it’s search feature. This is a tool that comes with Visual Studio (and presumably VC++ distributions – or get it as a seperate download). It allows you to click on any window to discover it’s properties – included class name, window styles, child windows, and parent window. Very useful for figuring out the parent/child relationship of various windows and buttons.

    Also, in most legacy apps, each edit box, button, and ui widget is it’s own HWND. Newer apps may not have their UI widgets as child windows. In that case, you need to look at using Windows Accessibility APIs and Windows UI Automation APIs.

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

Sidebar

Related Questions

Developing a .NET WinForms application: how can I check if the window is in
I've inherited a C# window's application that I'm not real crazy about. I've got
I am developing an application that will automate some tasks for me. The application
I am developing a web application that uses Amazon Web Services. I am using
I'm developing automated tests for a web application (base on MVC) I'd like to
I am developing a Codeigniter (2.0.2) Application, which will utilise a Master database for
I am developing a Windows forms application which connects to a piece of hardware,
I'm developing an application that I suspect is suitable for using workflow. (It's easy
I am developing an intranet web application which should provide its users with a
I am developing a suite of Perl scripts and modules that then get deployed

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.