If a prog is running stop and restart

M

mike.r.harris

I need to trap a possible running program and stop it, then re-start
it. This is so I can use sendkeys to extract information from a known
reference point. I have studied the newsgroups and established I need
to use API routines to allow activation and subsequent continuation,
after recovering data, of the manipulating macro....so this I can do
but the trapping and stopping (if the prog is running) and then
re-starting stumps me. It should be simple I have tried GetObject but
can't get it to work. Can any one point me in the right direction
please?
 
D

Dave Patrick

If you post what you've tried someone may be able to help. SendKeys is
generally not a stable coding solution. You might also give this a go.

http://www.autoitscript.com/autoit3/


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

|I need to trap a possible running program and stop it, then re-start
| it. This is so I can use sendkeys to extract information from a known
| reference point. I have studied the newsgroups and established I need
| to use API routines to allow activation and subsequent continuation,
| after recovering data, of the manipulating macro....so this I can do
| but the trapping and stopping (if the prog is running) and then
| re-starting stumps me. It should be simple I have tried GetObject but
| can't get it to work. Can any one point me in the right direction
| please?
|
 

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