Code Monkey home page Code Monkey logo

windows-activity-recorder's Introduction

windows-activity-recorder

Windows activity recorder - silently logs the time spent with active focus within applications

This was written to help me understand where I'm spending my time, but without me needing to think too hard about it.

build

I built this using VSCode. I had to first install the dotnet framework on Windows and then C# plugin into VSCode.

But, if you install dotnet alone then its possible to build from the command line ...

dotnet build Recorder.sln

I used dotnet 6 as that was current at the time and the binary gets written to ....

bin\Debug\net6.0\Recorder.exe

usage

Just run the binary.

An activity log file is written to %USERPROFILE%/recording.csv

The log files should be openable in excel.

NB: If you open the file in most windows apps then the file will be locked and will stop recording updates until you close the file.

The format of the log file is: datetime, time-spent-in-window, program-name, window-title

For example:

datetime            ,duration  ,program             ,title
04/12/2023 22:27:35 ,51        ,Code                ,Program.cs - windows-activity-recorder - Visual Studio Code
04/12/2023 22:30:55 ,2         ,Code                ,Program.cs - windows-activity-recorder - Visual Studio Code

New entries are written to the log file when the window focus is changed and/or every 60 seconds.

I'm not an excel expert but it's easy enough to process that CSV file in excel to extract info.

windows-activity-recorder's People

Contributors

johnlon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.