Control another program's flow ...?

J

Jorge

Hello,

I'd like to know how if it's possible to write a program to 'control'
another program.

For instance, let's say i'd like to open Word, change the font, and
insert some text. Is there any way to 'get a hook' on another running
program's resource, and trigger events like keystrokes or a mouse
click ? (pretty much what MsnPlus does)

Thank you!!
 
B

Bert Hyman

In
Jorge said:
For instance, let's say i'd like to open Word, change the font, and
insert some text. Is there any way to 'get a hook' on another running
program's resource, and trigger events like keystrokes or a mouse
click ? (pretty much what MsnPlus does)

Have you looked at System.Windows.Forms.SendKeys?
 
S

Scott M.

You can "automate" any other piece of programming if that software has an
application programming interface (API). Not all programs do. Without
that, you can run another program and somewhat interact with it, but only
superficially.

-Scott
 

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