1 Reply Latest reply on May 11, 2010 4:36 AM by Ned Murphy

    Detection of user's leaving

    Vincent-ZHANG Level 1

      Hi there,

      With AS, can I trace that user hasn't been operating on the computer for a while, say 5 miniutes, and then do something?

      theoretically speaking, to detect that there is no mouse or keyboard event for certain a period of time, and then do something~~ just like screensaver of Widows~~

      Thanks in advance...

        • 1. Re: Detection of user's leaving
          Ned Murphy Adobe Community Professional & MVP

          You can use the setTimeout() and clearTimeout() functions.  A setTimeout call would be initiated at the start and anytime some user interactivity is detected (key down, key up, mouse down, mouse up) the clearTimeout() function would be called and a new setTimeout function be initiated.  The function that the setTimeout function calls would process whatever command you intend at the 5 minute mark (300,000 msec).