How control another windows-application out of my c#-application

  • Thread starter Thread starter Calad
  • Start date Start date
C

Calad

Is there any way to control another running application out of my
c#-application? I've already figured out how to run and quit other
applications with c#, but now I'm stuck. Can I simulate keystrokes or
mouseclicks or something similar to perform different actions within
the other application?

Thanks in advance!

Regards,
Calad
 
You should be able to use System.Windows.Forms.SendKeys to simulate
keystrokes; however, that's not terribly neat. What is the application
you're trying to control?
 
Hi,


Calad said:
Is there any way to control another running application out of my
c#-application? I've already figured out how to run and quit other
applications with c#, but now I'm stuck. Can I simulate keystrokes or
mouseclicks or something similar to perform different actions within
the other application?

No idea if you can fully control it but you can send it events for sure
using the win32 API SendMessage
You will have to create the messages though.


Look for Macro recorders , you may get examples of how to do it.
 
Abbyy FineReader. I'm trying to evaluate different OCR-solutions, and
apart from some OCR-SDKs I want to / have to test a standalone OCR-Tool
as well (automatically).
 
Hi,

Calad said:
Abbyy FineReader. I'm trying to evaluate different OCR-solutions, and
apart from some OCR-SDKs I want to / have to test a standalone OCR-Tool
as well (automatically).

For this I would advise you to get a macro recorder , implementing such a
feature will be very time consuming.
 
Back
Top