Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.56 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.56 KB

Mouse and Keyboard Recorder/Player

This Python script allows users to record and play back mouse and keyboard movements while capturing screenshots at specified intervals.

For educational purposes only.

Features

  • Record mouse and keyboard movements.
  • Play back recorded sessions.
  • Capture screenshots at defined intervals during the recording process.
  • Utilizes a simple command-line interface.

Getting Started

Prerequisites

Installation

  1. Install the required packages:

    pip install -r requirements.txt

Usage

Record Mode

To record mouse and keyboard movements with screenshot capture, run the following command:

python main.py --mode record --ss-interval 2
  • --mode: Set to "record" to enter record mode.
  • --ss-interval: Set the screenshot capture interval in seconds (default is 2 seconds).

Recorded data will be saved in a file named recorded_data.json in the script's directory.

Play Mode

To play back a recorded session, use the following command:

python main.py --mode play
  • --mode: Set to "play" to enter play mode. The script will load the recorded data from recorded_data.json and replay the mouse and keyboard movements.

Contributing

Contributions are welcome! Feel free to open issues or pull requests.