Welcome to winfoc, an open source program to track how long a window has been focused for.
The binary can be found in the "release" folder in the form of a ".exe" file. It should work with Windows 7 or above.
The source code can be found in the "src" folder. If you are on Windows, you can use the Qt IDE to compile the code. If you are on linux, you can use M Cross Environment (https://github.com/mxe/mxe) to compile it for Windows. You can find an in-depth tutorial on (https://mxe.cc/#tutorial), but here are the basic steps:
- Make sure you have all the required packages installed (the list can be found on (https://mxe.cc/#requirements))
- Clone the repository with
git clone https://github.com/mxe/mxe
- Go into the directory with
cd mxe
- Run
make qtbase
to build the libraries - Go into your source directory
- Add the mxe tools to your path with
export PATH=/<path-to-mxe>/usr/bin:$PATH
- Run mxe's version of qmake with
<path-to-mxe>/usr/i686-w64-mingw32.static/qt5/bin/qmake
- Run
make
- The executable can be found as
src/release/winfoc.exe