bdruesedow / ClickTimer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ClickTimer

This is a simple application, to start a timer when a left mouse click is detected. It could be used to measure the time of a process that is initiated with a click on a button. To stop the measurement use F9 button.

Features:

  • start a timer on click event
  • live timer update
  • measured time will be saved in a log file
  • type a name for the time measurement that will be saved in the log file

ClickTimer

Prerequisites

  • Python >= 3.8.5 (may also work with earlier versions)
  • pip >= 21.1 (may also work with earlier version)

Modules

tkinter
pynput

Python Module Istallation

$ pip install tkinter
$ pip install pynput

Usage

Console

To start the application from the console:

python timer.py

Standalone Windows

Note: The Standalone version for Windows do not require any Python installation on your system.

  1. Download the latest release.
  2. Unpack it.
  3. Start timer.exe.

Build the standalone windows version

python build.py build

Change the Stop Button

Changing the Stop button is very simple, but needs to be done in the code by now. Just change the Key in the following line of the method on_press():

if key == keyboard.Key.f9 and isTimerStarted:

More information of pynput.keyboard module here: https://pypi.org/project/keyboard/

About


Languages

Language:Python 100.0%