Project Tracking with AutoHotkey and Toggl

autohotkey
#1

I’m very pleased with my latest script and wanted to share with those that would appreciate it too.

I have an ahk script running on my machine that watches the window titles and if a keyword in that title matches a list of keywords I have designated for a project, it starts the timer in Toggl through a simple API call.

If the window changes to another window that matches the same project, it just keeps on truckin’.

I have also made it possible for me to flag windows as neutral. Meaning, if a timer is running and a neutral window is up, it doesn’t stop nor start a timer.

If I switch to a different window related to another project, then the timer for that will start seamlessly.

All projects are kept in Toggl, and keyword data is located on a file and they are merged together when the tracker starts. I was thinking of moving the keywords to labels in Toggl so everything could be kept there, but I don’t want to pollute the Toggl environment. I would love to hear suggestions on what I could do about this so I don’t have to have data stored locally.

Anyway, I’m pretty proud of this one. Thought I would share!

2 Likes
#2

This is pretty cool, it’s in evitable so when I do end up spending more time on windows out in sure to keep your post in mind.

If I’m using Toggl for time tracking, however right now Timing on Mac OS is my main time tracking app.

Keep up the creative work.

best.
Michael
@payown
Host of the Your Own Pay Podcast Network

#3

I use Toggl as well, and your scripts would be a lifesaver for me. Do you mind posting?

#4

Sure, I’ll try to scrub it a bit and post it. I’m currently working on a .net implementation of it so hopefully I’ll have something installable in the near future.