471,605 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

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

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

Jan 3 '06 #1
4 3277
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?

Jan 3 '06 #2
Hi,
"Calad" <ca***@gmx.at> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
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.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 3 '06 #3
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).

Jan 3 '06 #4
Hi,

"Calad" <ca***@gmx.at> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
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.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 3 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Stefano Meier | last post: by
reply views Thread by Shon | last post: by
2 posts views Thread by Nicola Garone | last post: by
4 posts views Thread by Varangian | last post: by
2 posts views Thread by Douglas Peterson | last post: by
2 posts views Thread by bg_ie | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.