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 4531372
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:53:59+00:00 2026-05-21T13:53:59+00:00

I have an application that I would like to write an automated test for.

  • 0

I have an application that I would like to write an automated test for. The automated test will mimic an Operator’s usage of the application. I cannot change the source code of the application as it is “frozen” for review.

The application will display a pop-up (message) window informing the operator to click on a button after measurements are finished. The button is enabled some time after the message window is closed.

I need to know how to detect when the application enables this button. My research so far indicates that the application should broadcast a custom message to help the automated testing; but I cannot modify the source code.

Also, the application will enable radio buttons after the “Measurements Finished” button has been clicked, asking if the measurements were valid. I need to detect this also.

Summary:

  1. How do I detect when a button
    (control) is enabled in another
    application?
  2. How do I get the handle of the other
    application?

I am using C# with MS Visual Express 2010 on Windows NT, Vista & 7. If you suggest tools, I need them to be free as the company has a very tight budget.

  • 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-21T13:54:00+00:00Added an answer on May 21, 2026 at 1:54 pm

    I think you could do the job using FindWindow API, passing title and receiving the handle.
    Then, enumerating children components, you could find the button (if you catch its name, next time you can use it to be quicker) and get the enabled state.
    I think you could use AutoIT software (script) or its logic.

    [DllImport("user32.dll", CharSet=CharSet.Auto)]
    public static extern IntPtr FindWindow(string strClassName, int nptWindowName);
    

    EDITED:
    Check this link to find a simple way to do what you need.
    I hope this helps you.

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

Sidebar

Related Questions

I would like to write a Web Application that would have two buttons and
I would like to write an application that will copy MP3 files to a
I have an application that was written in vanilla ASP.NET that I would like
i have a swing application that i would like to run on os x
I have an application A that I would like to be able to invoke
I have a Swing application that I would like to convert from spaghetti to
We have an asp.net mvc application that we would like to integrate a FileSystemWatcher
I have an application that used Macro. In this macro I would like to
We have an application that logs using log4net. But we would like to delete
I have an application that I have behind a reverse proxy, I would like

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.