tags:

views:

86

answers:

1

I want to write a python script on Windows that saves the title of the program that the user uses at a given time like the http://www.rescuetime.com . I don't want to use rescuetime because of privacy consideration but instead write a script that does something similar myself to capture data about how much I use my computer.

Is there some easy command that I can use to read that information?

+4  A: 

From daniweb

  import win32gui
  w=win32gui
  w.GetWindowText (w.GetForegroundWindow())
Ólafur Waage