Skip to content

A macro recorder built with pynput to record your mouse and keyboard actions and replay them again when you want for automation

Notifications You must be signed in to change notification settings

biohacker0/maCrow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maCrow

A macro recorder for windows automation

Mouse Recorder/Replayer

This Python script allows you to record and replay mouse movements, clicks, and keyboard inputs. It uses the pynput library for mouse events and the keyboard library for keyboard events. The recorded actions are saved in a JSON file, which can be later replayed to simulate the recorded input.

Features

  • Record: Capture mouse movements, left or right clicks, scrolls , hold & drag , double clicks, and keyboard inputs with multiple key press combo(hotkeys).
  • Replay: Replay recorded actions to simulate mouse and keyboard behavior.

Requirements

  • Python 3.x
  • pynput - Library to monitor and control input devices.
  • pyautogui - Library to programmatically control the mouse and keyboard.
  • mouse - Cross-platform library to control and monitor mouse events.
  • keyboard - Cross-platform library to control and monitor keyboard events.
  • tkinter - Library for creating GUI applications.
  • ctypes

Installation

  1. Clone the repository:

    git clone https://github.com//biohacker0/maCrow.git
  2. Install dependencies:

    pip install -r requirements.txt

Usage

Record

To record mouse actions and save them to a file:

python maCrow.py record --file mouse_actions.json

-- While recording, move the mouse, perform actions, and type on the keyboard. Press Ctrl + C to stop recording.

To stop the recording and save them to file:

Ctrl + C

Replay

To replay mouse actions from a recorded file:

python maCrow.py replay --file mouse_actions.json

-- This will simulate the recorded mouse and keyboard inputs.

Additional Notes

Note: Adjust the double_click_threshold carefully to suit your specific use case. Customize the double_click_threshold in the replay function to adjust the threshold for detecting double clicks.

Press Ctrl + C to stop the recording.

About

A macro recorder built with pynput to record your mouse and keyboard actions and replay them again when you want for automation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages