Results 1 to 4 of 4

Thread: Idle Time/ Disconnected?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    10

    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

  2. #2
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    10

    Re: Idle Time/ Disconnected?

    Hi kebo.

    I had that thought too.

    However trouble is that i doubt this will work when they are disconnected.

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    10

    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
  •  



Click Here to Expand Forum to Full Width