Manipulate an external Windows application

J

John A. Bailo

From a c# application I can launch an application with the Process class.

Once that app is launched, can I then manipulate it?

Example, say I launch notepad with:

p=new Process();
p.StartInfo.FileName = "notepad";
p.Start();

p.WaitForExit();

Can I simulate the effect of a mouse click and drag and move it around
the screen?
 
T

Tasos Vogiatzoglou

You will have to use winapi through pinvoke to first inspect the
application's UI and then send the appropriate messages through win32
api.

Regards,
Tasos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top