user3552287
user3552287

Reputation: 123

SendMessage() Function Issue

I know that I can use

SendMessage(buttonHandle, BN_CLICK, 0, 0);

to get my program (program 1) to click a button on another program (program 2), but I was wondering if there was a way of doing something else. The button I wish to click on program 2 is going to pop up a window.

QUESTION:: Is there any message I can send in the SendMessage() function to bring that window up directly or is there possibly some other function that I can use to do that?

Upvotes: 1

Views: 126

Answers (1)

David Heffernan
David Heffernan

Reputation: 612794

Possible ways to automate another application include:

  • Faking input.
  • Sending messages to specific windows.
  • Using a system wide automation framework such as UI Automation.
  • Using an application specific application framework.

You are asking if it is possible to do the final of these options. That depends on the application. If the application publishes such an automation interface it is possible. Otherwise you are looking at one of the other options.

Upvotes: 1

Related Questions