Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trigger with keyboard and mouse inactivity

843804Aug 16 2001 — edited Oct 16 2007
Chat software like MSN Messenger often have a facility to detect the users "away" status. This is basically done by when there is no keyboard/mouse input for a pre-specified period of time. I have no professional Windows programming experience, and I want to know if there are ready made APIs (loosing platform independence is ok in my particular deployment) that will detect mouse and keyboard inactivity.

Java can only monitor events happening within the Java VM. So if I have my Frame minimized, no AWTevents/Mouse/Keyboard events are detected even though I may still be at my desk.

Is there code out there that I can use that internally handles all the Windows stuff, but has a nice Java Wrapper that I can call?

TIA,
Carlos
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 13 2007
Added on Aug 16 2001
3 comments
142 views