I have a scenario, i need to send click events to an independent application. I started that application with the following code.
private Process app; app = new
For a single click you should send two mouse event at the same time for an exact mouse click event.
SendMessage(nChildHandle, 0x201, 0, 0); //Mouse left down SendMessage(nChildHandle, 0x202, 0, 0); //Mouse left up
It is working in my project.