控制应用程序的功能

问题描述:

大家好,

我想控制其他MFC应用程序中正在运行的应用程序的所有功能.

假设您有一个始终运行的"XYZ.exe"(进程),我想创建一个访问"XYZ.exe"的应用程序以使其自动化.

Hi All,

I want to control all the functionalites of a running application from other MFC application.

Lets say u have a "XYZ.exe" which is running always(process), i want to create a application which access the "XYZ.exe" so as to automate.

您想做什么?

What you want to do?


  1. 某些应用程序具有控制它们的接口(IDispatch),并且可以
    在您的进程中作为server-app运行.
  2. 否则,您可以通过发送WM_COMMAND消息来控制应用程序
    从注入的模块(通过钩的dll)那根本不好.
  3. 可以通过发送DDE消息来控制某些较旧的应用程序.

  1. Some applications have an interface to control them (IDispatch) and can
    run as server-app in your process.
  2. Otherwise you can control the application by sending WM_COMMAND messages
    from an injected module (dll by hook) thats not good at all.
  3. Some older applications can be controlled by sending DDE messages.

此致.