A small, local utility to record and replay user input (mouse + keyboard).
Requirements
- Python 3.10+
- pynput — install with:
pip install pynput
Overview
- Record: captures mouse moves, clicks, scrolls, and key presses/releases and saves them to
sequence.json. - Playback: replays recorded events; press Esc during playback to stop.
Quick use
- Run
python recorder.pyto record. Two lines will appear:- Recording for 20 seconds...
- Press "Esc" to stop recording
- After recording, choose "Play recording" or "Cancel" in the popup.
- To replay later, run
python replay.py(it loadssequence.json).
Files
recorder.py: record UI and saverreplay.py: replay UI and playerinput_sequence_loader.py: loader/compatibility helpersequence.json: saved recording (created after recording)
Privacy
- Recordings are stored locally as
sequence.json; remove it before publishing if you recorded sensitive content.
Legal / Intended Use
- This tool is intended for private, legitimate automation and testing only.
- Do not use for surveillance, unauthorized recording, or any illegal activity.
- Ensure you have consent before recording input that involves other people or sensitive data.
- The author disclaims liability for misuse; publish and use responsibly.
Requirements
- Python 3.10+ and the
pynputpackage.
License & notes
- Minimal tool for automation and testing. Use responsibly.