Interact with other desktop-applications in windows using C# winforms
Asked Answered
L

2

6

I was wondering if its possible to interact with other programs someone with my program. For example clicking a button on another program etc. etc. I'm not sure if this is even possible but if it is could someone provide a little sample code in C#.

Thanks

Lowery answered 26/5, 2009 at 21:32 Comment(0)
B
3

You can use UI Automation to interact with other applications.

Bysshe answered 26/5, 2009 at 22:3 Comment(0)
M
4

You could just create and send messages to the other process. You will have to use P/Invoke for this from C# code.

Here is some code that should point you into the right direction.

Melisamelisande answered 26/5, 2009 at 21:42 Comment(0)
B
3

You can use UI Automation to interact with other applications.

Bysshe answered 26/5, 2009 at 22:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.