Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I have to send keyboard and mouse events to another opened application.
Posted
Updated 7-Aug-12 21:45pm
v3
Comments
Sebastian T Xavier 7-Aug-12 1:01am    
Ok. Do it.
Sandeep Mewara 7-Aug-12 2:26am    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

Although a horrifyingly formed question, in a way contrary to everything suggested by The Code Project, I'll take a shot and I'll assume you want to automate certain applications using their UI.

Take a look at this[^]. And while you're at it, take a look at this[^] too
 
Share this answer
 
v2
C#
CWnd* pTargetWnd = FindWindow( 0, _T( "TestDrive2" ));
::SendMessage( pTargetWnd->m_hWnd, WM_RBUTTONDOWN, 0, 0 );
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900