My main aim is to count the number of mouse clicks on a particular application.
Imagine I have opened Microsoft Word and a web browser on my PC. My Java code should tell me how many times I clicked on Word and on the web browser. I need the application name and the number of clicks.
How can I do this? Any solution must work for MAC, Linux and Windows.