title: How to get the executable name or process id clicking a window
body: <p>Is there a way to get the executable name or id of a process clicking a window? I want to do a counter that counts the time a user uses an application (game). It's only for Windows and done in java.</p>
  
  <p>Thanks.</p>