|
-
May 24th, 2005, 07:03 AM
#1
Thread Starter
New Member
Idle Time/ Disconnected?
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
-
May 24th, 2005, 07:42 AM
#2
Re: Idle Time/ Disconnected?
I don't know if it is useful for you, but my thought was to make a screen saver. After it runs for 5 hours, send the email. This obviously won't do if the user can change their screen saver.
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
May 24th, 2005, 08:02 AM
#3
Thread Starter
New Member
Re: Idle Time/ Disconnected?
Hi kebo.
I had that thought too.
However trouble is that i doubt this will work when they are disconnected.
-
May 24th, 2005, 09:03 AM
#4
Thread Starter
New Member
Re: Idle Time/ Disconnected?
What id like to be able to do is read the status from the Terminal Services Manager (control Panel, Administrative tools, Terminal Services Manager) and get from there the State and Idle Time for the current user.
That way i could run my program as a service, have it check these every 10 mins or so and then report back to myself.
I cant seem to find anyway to find these variables though.
Ive went through the GetCurrent and Environment commands but these dont seem to do it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|