title: Is it possible to get the name of current active application
body: <p>User can switch active application by Alt+Tab or by clicking on their icons in TaskBar. Is it possible to get the name (or other unique characteristic) of current active application?</p>
  
  <p>I want to write a program which collects statistic of the applications usage.</p>