I had considered a similar idea for windows, but I never got around to implementing it.<br>I haven&#39;t seen a product, but it might not be too difficult to write one.<br><br>My thought was to write my own using the win32api to get the window with focus and the title of it every 5 minutes and then add up the time spent.<br>

<br>There may be a way to subsribe to the &quot;focusChanged&quot; event in windows with win32api, but I am not sure.  pyHook may be a subscriber for these window change events.<br><a href="http://sourceforge.net/apps/mediawiki/pyhook/index.php?title=Main_Page">http://sourceforge.net/apps/mediawiki/pyhook/index.php?title=Main_Page</a><br>
<br>Then define all the projects (I think I was going to use an ini file and ConfigDict) that I might work on and then assign each window title to a project.<br>
<br>This might give you some quick examples scripts and ideas.<br><a href="http://vermeulen.ca/python-win32api.html" target="_blank">http://vermeulen.ca/python-win32api.html</a><br><br>I think it mentions (or I have seen) how to detect if a workstation is locked (stop the clock).<br>

<br>As for linux - this might be a starting point ...<br><a href="http://stackoverflow.com/questions/4542152/keyboard-mouse-events-on-desktop-root-window-with-pygtk-gtk-gdk-on-linux" target="_blank">http://stackoverflow.com/questions/4542152/keyboard-mouse-events-on-desktop-root-window-with-pygtk-gtk-gdk-on-linux</a><br>

<br><div class="gmail_quote">On Tue, Feb 1, 2011 at 4:22 PM, Tom Roche <span dir="ltr">&lt;<a href="mailto:Tom_Roche@pobox.com" target="_blank">Tom_Roche@pobox.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Apologies if this is OT, but I&#39;m wondering: what software do folks use<br>
to record activity time, e.g., for client billing?<br>
<br>
I currently use a tool designed to support the Personal Software<br>
Process. It works well enough: I start it up, choose a bucket to which<br>
to attribute the time accrued to the current activity, minimize it, and<br>
then click on the panel icon to start or stop time recording. But<br>
<br>
- the tool is overkill, since I&#39;m only using the timer bit, not any of<br>
  the PSP stuff.<br>
<br>
- I&#39;d prefer something that was smart enough, or configurable, to turn<br>
  the timer off when I sleep the box.<br>
<br>
Requirements: must work on linux, be FOSS, save the time log in an<br>
open/tractable format.<br>
<br>
Preferences: should work on windows, be implemented in python.<br>
<br>
TIA, Tom Roche &lt;<a href="mailto:Tom_Roche@pobox.com" target="_blank">Tom_Roche@pobox.com</a>&gt;<br>
_______________________________________________<br>
TriZPUG mailing list<br>
<a href="mailto:TriZPUG@python.org" target="_blank">TriZPUG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/trizpug" target="_blank">http://mail.python.org/mailman/listinfo/trizpug</a><br>
<a href="http://trizpug.org" target="_blank">http://trizpug.org</a> is the Triangle Zope and Python Users Group<br>
</blockquote></div><br>