Search code examples
delphicontrolsdelphi-7

Delphi: how to access another application's controls?


I want to "view" information displayed by another application and "click" different buttons to automate a process. Have never done this before and would appreciate any advice on where to start and/or links.


Solution

  • The proper way to automate another application on Windows platform is through the use of the UI Automation framework. It supports both .Net and COM APIs with the same level of functionality.

    Disclaimer: I have not touched Delphi in years, so I have no idea which one will be easier for you to use.

    Note that the UI Automation works on XP and above only; if for some reason you need to automate applications on Win2k or Win9x, you should look at the Windows Active Accessibility APIs.