how to find the system idle time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chandru8
    New Member
    • Sep 2007
    • 145

    how to find the system idle time

    hi to all i need to find the system idle time and if the user doesnot use the system for more the a minute then i should lock the system

    is it possible
    can any one help in this.
    thanks
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    1.run a timer
    2.increment a counter variable in timer
    3.handle the keystrokes and the mouse events.
    4.every time any event occurs reset the counter.
    5.once counter reaches a particular value call the system lock sub routine.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by chandru8
      hi to all i need to find the system idle time and if the user doesnot use the system for more the a minute then i should lock the system

      is it possible
      Sure - use a screensaver. This functionality is already built into Windows.

      Comment

      • chandru8
        New Member
        • Sep 2007
        • 145

        #4
        is there any specific methods to handle mouse events

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          Originally posted by chandru8
          is there any specific methods to handle mouse events
          You need to handle all the mouse related events.

          Comment

          • chandru8
            New Member
            • Sep 2007
            • 145

            #6
            Thanks For Your Reply Can You Give Any Example

            Comment

            Working...