0

Possible Duplicate:
C#: Detecting which application has focus

I want to track focused time of each application running in windows. I tried C#: Detecting which application has focus solution but it allows to get what application is focused but i dont want to have timer and check in intervals to get total focused time. i want a focus listener to be more efficient.

Community
  • 1
  • 1
Suresh Balaji
  • 109
  • 2
  • 12
  • Whats wrong with timer? Just start timer when app activates and stop when deactivates.Or just store activation time and then subtract it from deactivation time – Stecya Feb 08 '12 at 09:57
  • @vulkanino i have even mentioned that link in my question please see to it.the link helps me to get current focused application and it dint solve my purpose. – Suresh Balaji Feb 08 '12 at 12:04
  • @Stecya that is what i wanted. when the application was activated and when it is deactivated. you can get those information for my application but how can we get for all applications running in windows. like how to track how much time calculator, notepad or any other application is focused. – Suresh Balaji Feb 08 '12 at 12:06

0 Answers0