: Hi, : : I don't know how to execute events ( like key press or mouse move and mouse click ) from my application in diffrent running application. : : Please help.. : : Thanks. : Hi, you can send the other application to the front and make it active and then use SendKey function to simulate keyboard. But better (and little more difficult) way is to send system messages (like KeyPress, mousemove) to the other application. If you don't know the PID or hWnd of the other application, try FindWindow API function for this. To send message, use SendMessage API function.
Comments
:
: I don't know how to execute events ( like key press or mouse move and mouse click ) from my application in diffrent running application.
:
: Please help..
:
: Thanks.
:
Hi,
you can send the other application to the front and make it active and then use SendKey function to simulate keyboard.
But better (and little more difficult) way is to send system messages (like KeyPress, mousemove) to the other application.
If you don't know the PID or hWnd of the other application, try FindWindow API function for this. To send message, use SendMessage API function.
Hope this helps
[blue][b][italic][size=4]P[/size]avlin [size=4]II[/italic][/size][/b][/blue]
[purple]Don't take life too seriously anyway you won't escape alive from it![/purple]