Click to See Complete Forum and Search --> : control an app from another app in c#


_mickey
05-12-2008, 11:40 PM
Hi all,

In c# can we control an application from another application?

for example, I have a form in c#. On it I have some controls like buttons... etc. and some menu. At the same time, I have another application to control the first application like clicking menus and buttons from the second application.
Can we do this in c#?

_mickey

DarkBob
05-14-2008, 10:32 AM
You could use named pipes to pass information between the apps then trigger the events in the recieving app http://www.codeguru.com/csharp/csharp/cs_misc/sampleprograms/article.php/c7261/. Do you really want to operate the menus? You can do it like this but it's easier to just call the functions you'd use the menus to call. You could also vpn into the users machine and and just operate the other app as they use the first one making it look like one process is controlling the other. This is fine as long as you only have one user and can sit around waiting all day for them to use your app but I'd probably go with the first one.

_mickey
06-11-2008, 12:47 AM
Thanks DarkBob...
I'm trying to learn from the link you gave to me... but it's hard for me... so are there any easy solution for that problem...?