Skip to content

njithjw/InputScope

 
 

Repository files navigation

InputScope

Mouse and keyboard input heatmap visualizer and statistics.

Runs a tray program that logs mouse and keyboard input events to a local database, and provides a local web page for viewing statistics and heatmaps by day or month.

Mouse clicks heatmap Mouse moves heatmap Keyboard keys heatmap Keyboard combos heatmap

Details

Logs mouse clicks and scrolls and movement, and keyboard key presses and key combinations; event categories can be toggled off from tray menu.

Provides an option to record named sessions, allowing to group inputs with finer detail than one day.

Keypresses are logged as physical keys, ignoring Unicode mappings. Note: keyboard logging can interfere with remote control desktop, UI automation scripts, and sticky keys.

Non-standard keys can be added in configuration file, as:

CustomKeys = {numeric key code: "text label for key"}

e.g.

CustomKeys = {21: "IME Han/Yeong", 25: "IME Hanja"}

Data is kept in an SQLite database.

The local web page is viewable at http://localhost:8099/, port can be changed in configuration file.

Installation

Works best on Windows, tested on Linux, might work on Mac.

Windows: download and launch the latest release from http://github.com/suurjaak/InputScope/releases.

Or: pip install inputscope

Three components in source code form:

  • main - wxPython desktop tray program, runs listener and webui
  • listener - logs mouse and keyboard input, can run individually
  • webui - web frontend for statistics and heatmaps, can run individually

Listener and web-UI components can be run separately.

In source code form, data and configuration is kept under inputscope/var.

The pip installation will add commands inputscope, inputscope-listener and inputscope-webui to path.

Dependencies

  • Python 2.7 or Python 3.5+
  • bottle
  • pynput
  • pywin32 (optional, for toggling "Start with Windows")
  • wxPython (optional)

If wxPython is not available, InputScope will not have its tray program, and will not recognize multi-monitor setups in mouse statistics.

Attribution

Heatmaps are drawn with heatmap.js, released under the MIT License, (c) 2014 Patrick Wied, http://www.patrick-wied.at/static/heatmapjs/.

Icon from Paomedia small-n-flat iconset, released under Creative Commons (Attribution 3.0 Unported), https://www.iconfinder.com/icons/285642/monitor_icon.

Keyboard image modified from Wikipedia File:ISO keyboard (105) QWERTY UK.svg, released under the GNU Free Documentation License, http://en.wikipedia.org/wiki/File:ISO_keyboard_(105)_QWERTY_UK.svg.

License

Copyright (C) 2015 by Erki Suurjaak. Released as free open source software under the MIT License, see LICENSE.md.

About

Mouse and keyboard input heatmap visualizer, with statistics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 74.6%
  • Smarty 20.4%
  • CSS 5.0%