Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jimmy Hawkins   on Jan 13 In Java Category.

  
Question Answered By: Volney Fischer   on Jan 13

You should be able to do it easily enough. Just
set up a timer that counts seconds since the last
time your app saw a keyboard  or mouse  event, and when
it gets to 600 seconds, you stop the timer and set
the "away" flag. Whenever your app sees a mouse or
keyboard event, reset the counter to 0 seconds, remove the
"away" status and restart the timer if necessary. No
problem ;).

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on can't access system-level info Or get search suggestion and latest updates.


Tagged: