I am trying to build a tool that would monitor user activity. I would like to know if there is any way to get the active window's process, title and time spent on that application
I came across articles that suggests to use JNA
stackoverflow.com
I have achieved the following if anyone is interested
Browser History
Screenshots ( dual monitor included )
Hostname . current loggedin user
Open Processes
Idle time
If there is anything that you might think i will need to add, please suggest.
any help would be appreciated. thank you
I came across articles that suggests to use JNA

Getting active window information in Java
I am trying to upgrade my application in Java to work only if a window of process with certain name is active. I have found out that this is possible by using JNI, but I have no idea how exactly to...
I have achieved the following if anyone is interested
Browser History
Screenshots ( dual monitor included )
Hostname . current loggedin user
Open Processes
Idle time
If there is anything that you might think i will need to add, please suggest.
any help would be appreciated. thank you