title: Capturing user events (button clicks etc) from another Windows application
body: <p>I'm looking to write a .Net Windows application that will capture how a user uses another running application. </p>
  
  <p>The simplest form of this would be recording which buttons were clicked or menu items were opened. Capturing the button text or menu text would be enough.</p>
  
  <p>I know this can be done by listening for events but was unsure how far this stretched. In Windows are you able to listen to another applications events or are they hidden from other applications? </p>
  
  <p>If so, are there any .Net libraries I can use or open source projects to catch these events? Taking this further, turn these into generic events (im thinking lots of applications might fire events specific to them, so extracting general information is key)</p>
  
  <p>If not, is the only solution to integrate my code with the application to gain access to the that applications events?</p>
  
  <p>Many thanks</p>