Monitoring open windows with java
Ok im trying to make a java program that detects mouse clicks, but only in a certain open window, i dont really know how to start this or how to obtain information about other applications running, but i have about 2 years experience with java and ive used the mouse events and key events but i dont really know much about windows. any help would be appreciated. -specifically im trying to make a program for a game that will reset a timer every time i click in the game window (a browser window) and the timer will show me how much time i have until i get logged out (im tired of waiting for someone else to make this so ive taken matters into my own hands to make my life just that much easier).