Detecting Another Application's Events

  • Thread starter Thread starter scorpion53061
  • Start date Start date
S

scorpion53061

In some situations MS Word is started in another thread by the end user.

I am trying to figure out how, if possible, to detect if the user has shut
down MS Word so I can kill the thread and clean up the instance.

Any ideas?
 
* "scorpion53061 said:
In some situations MS Word is started in another thread by the end user.

I am trying to figure out how, if possible, to detect if the user has shut
down MS Word so I can kill the thread and clean up the instance.

Thread? Process?
 
Hi Herfried,

I guess what i need help with is a way to know when the user has shut MS
Word down.

I am thinking there has to be a way to know the proces or thread that this
instance is taking.

can you help me iwht this?
 
Just in case you understand me right I am creating a MS Word report they are
choosing to view.

I am trying to detect when they are no longer viewing it.(have it open, have
shut it down)
 
Using an AppActivate "Microsoftl Word" statement would generate an
error and tell you that no instances of Word is open

If you know the title of the window that Word would contain, you could
determine if your report is still open:
AppActivate "Your Report Name - Microsoft Word"



Just in case you understand me right I am creating a MS Word report they are
choosing to view.

I am trying to detect when they are no longer viewing it.(have it open, have
shut it down)
 
Back
Top