want to capture the system idle time. Means if the user did not press any key or did not move the mouse then it is considered as system idle time. I want the code for this in Java on windows operating system. Please help me.

Recommended Answers

Please show some effort before asking for help.

Jump to Post

All 3 Replies

Please show some effort before asking for help.

Hi everyone,

There is no easy solution to your question. You will have to use JNI.

But if you want the solution for the idle time for an application then get the first current time and get the current time for the the next event and minus them. That will get you the idle time for an application

Richard west

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.