copycat is a tool that record and replay mouse and keyboard macro.
This is a short demo of the tool:
demo.mp4
This tool uses poetry to manage dependencies and packaging. To install all the dependencies simply run:
poetry installYou can install the tool using pip:
pip install copycatIf you are using an Arch-based distribution, you can install the tool using the AUR package:
yay -S copycatRemember to install the other dependencies from the AUR:
yay -S python-pynput python-pyautogui python-ttkthemesYou can run the tool using poetry:
poetry run copycat --helpOr you can run the tool using python:
python -m copycat --helpOr you can run the tool directly from the directory or add it to your path:
copycat --helpusage: copycat [-h] [--verbose] [--debug] [--quiet | --no-quiet | -q] [--version] [--gui] [--theme THEME] [--speed SPEED] [--reply REPLY]
Copycat is a tool that record and replay mouse and keyboard macro.
options:
-h, --help show this help message and exit
--verbose, -v Increase verbosity. Use more than once to increase verbosity level (e.g. -vvv).
--debug Enable debug mode.
--quiet, --no-quiet, -q
Do not print any output/log
--version, -V Show version and exit.
--gui Run the tool in GUI mode.
--theme THEME, -t THEME
Set the "ttkthemes" GUI theme. (Default: equilux)
--speed SPEED, -s SPEED
Speed of the macro playback. (Default: 1.0)
--reply REPLY, -r REPLY
Define macro name to reply.First, you need to record a macro, you can do this by running the tool in GUI mode:
copycat --guiIf you want to use a different theme, you can use the --theme option:
copycat --gui --theme "arc"Visit the ttkthemes documentation to see all the available themes.
Then you can record a macro by clicking the record button. Once you start recording, the GUI will hide so you can
perform any mouse and keyboard actions.
In every moment, press the ESC key to pause the recording.
You can resume the recording pressing again the record button, or you can complete the record process and save the
macro by clicking on the save button.
Select the name of the macro and click on the save button.
Once you have a macro saved, you can replay it in two ways:
- by clicking on the
replaybutton, and selecting the macro you want to replay and the replayspeed(1.0 is the real record speed). - by running the tool with the
--replyoption:
copycat --reply <macro_name> --speed <speed>To run the tests simply run:
poetry run testTo update the setup.py file with the latest dependencies and versions run:
poetry run poetry2setup > setup.pyThis project was generated using powerful tools and libraries such as poetry, pydantic, pytest, ttkthemes, pynput pyautogui and more, I simply put the pieces together. Please check and support all the tools and libraries used in this project.