Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to determine if another application is active?

I am working in VB.Net VS2005 (.NET 2.0).
I need a way to determine if another (third party) application on the PC is running and is active.
being active means, the user is actually using it(clicking on it, typing in it, scrolling ...etc).

Background:
I have a project to monitor certain third party applications on users' PCs and determine if these applications are actively being used or if they are idle and not being used.
These are third party applications and the idea is to close down this application after a period of 10 minutes of being inactive so as to reclaim the license.

I am working with the process class which exposes certain (basic) information about the process, however, i still can not figure out how to tell if there is a way to monitor if an application is being used (active/inactive).

Your help would be appreciated.

Thanks!
[907 byte] By [rnamro] at [2007-11-11 10:20:36]