Hi guys.

I want to write a program that monitors the current users status.

If they have been idle for 5 hours with certian applications running then it sends a email to me.

If they are disconnected with app running, then email me.

I have the email and if program is running part sorted

At first i planned on doing this by using Scheduled Tasks. However this seems a little hit and miss and only works when the user is idle, not disconnected.

So does anyone know how to get the Idle time and if they are disconnected or not.

Id really appreciate any help