[Solved] Windows GUI – Find out what has been clicked on the screen


There are several programs on the web which do this. IIRC winspy is one of them. It achieves this via setting a global mousehook which returns the programname of the clicked window.
How to absract this in JNI? Do not know, but this is the link, you asked for:

http://www.codeproject.com/Articles/1037/Hooks-and-DLLs

4

solved Windows GUI – Find out what has been clicked on the screen