Click to See Complete Forum and Search --> : Sending Messages to Other Applications


fmullin
May 24th, 1999, 09:12 AM
I am trying to enhance an application from the outside. To do this, I need to be able to send messages that simulate user actions to the application.

For example, it is possible to send a WM_LBUTTONDOWN message to another program and have that program behave as though the user had moved the mouse to the specified point and pressed the button?

Frank Mullin
Corinium Group

Rob Wainwright
May 24th, 1999, 04:08 PM
Try getting hold of the HWND to the application, and then sending the required message to it. You can get hold of the top level windows (I think) through the EnumWindows API.