Skip to content

About

The macro recorder that actually works. Windows desktop app built with Python and PySide6 for recording, editing, replaying, and exporting keyboard and mouse workflows. Exports to .py and .exe to make your macros run effortlessly. Fully open source and free.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Macro Recorder +

Python Platform UI

The macro recorder that actually works. Windows desktop app built with Python and PySide6 for recording, editing, replaying, and exporting keyboard and mouse workflows. Exports to .py and .exe to make your macros run effortlessly. Fully open source and free.

Macro Recorder + main window

Highlights

  • Record keyboard input, mouse clicks, mouse movement, and scroll actions from the desktop; recording appends after existing main actions instead of replacing the macro.
  • Automatically capture modifier chords such as Ctrl+C, Ctrl+V, Ctrl+X, Alt+Tab, and Ctrl+Shift+S as keyboard-shortcut actions.
  • Edit recorded steps as structured actions before playback, including per-action loop counts up to 99,999 repeats.
  • Add manual actions for URLs, local files, launched programs, typed text, secrets, image clicks, custom image-relative mouse movement, waits, and comments.
  • Export macros as standalone Python scripts with runtime dependency files and a generated run_*.bat launcher.
  • Build optional Windows executables through PyInstaller from inside the app.
  • Store secrets by environment variable name so passwords are not written into macro files.
  • Configure whole-macro loop counts, fixed or randomized pauses between loops, playback speed, countdowns, hotkeys, theme, accent color, and widget corner shape.
  • Keep one-time setup steps in a separate pre-action list, so apps and documents open once before a repeating main macro.
  • Capture an open app window's monitor, position, size, and maximized state for exact restoration during playback.
  • Give image clicks a visual start circle and click circle, a smooth randomized mouse path, and a configurable move duration.

Appending recordings

Record and Recording Setup preserve the current macro, pre-actions, name, file path, and settings. New recorded actions are added after the final main action. On an empty macro, recording initializes the recorded desktop and cursor anchor as before.

Natural image clicks

New Find Image and Click actions enable natural randomized movement by default. In the action properties you can:

  • start within a radius around the current cursor or pick a fixed start-circle center on screen;
  • set a click-center offset and radius while viewing the red target circle over the actual image;
  • set a smooth curve amount and exact movement duration; and
  • use the same movement with left, right, middle, double-click, move-only, or legacy custom button actions.

Consecutive natural image-click actions are joined automatically: after one image is clicked, the pointer follows a short randomized 0.3–0.8 second curve into the next action's randomly selected start-circle point instead of teleporting. A standalone image action is unchanged.

Imported macros retain their prior exact image-click and custom-offset behavior. Saving or exporting them writes the current fields without requiring a separate conversion step. Selected image-search regions use native physical pixels and full virtual-desktop capture, including secondary monitors with negative coordinates.

Install

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements-dev.txt

Run

python -m macro_recorder_plus

The application declares per-monitor DPI awareness before creating QApplication. Global hooks may require running from a normal interactive desktop session.

Appearance settings are available under Settings > Appearance Customisation. The default theme is dark with primary accent #D0BCFF and sharp corners.

Pre-actions and saved app positions

Use the Pre-actions (run once) tab for setup work such as opening apps, documents, or URLs. These actions run once whenever you start the macro; only the Main actions (looped) tab is affected by the whole-macro loop count. The usual Insert Action menu, editing controls, and undo/redo work on the active tab.

For an Open URL, Open File, or Launch Program action, arrange the target browser or app window first, then click Capture open window position... in its properties and choose the window. The action immediately stores its monitor identity, position, size, and maximized state. If the monitor layout later changes, playback first tries the saved monitor identity, then its monitor number, and keeps the window inside the available work area.

Export

Use Export Python Script to create a standalone .py macro runner. Exports include:

  • the generated macro script,
  • macro_recorder_plus_runtime/requirements.txt,
  • macro_recorder_plus_runtime/install_dependencies.bat,
  • optional macro_recorder_plus_assets/ image templates,
  • a generated run_*.bat launcher,
  • README_exported_macros.txt with run commands.

The generated script also supports direct CLI use:

python exported_macro.py
python exported_macro.py --install-deps
python exported_macro.py --speed 1.5
python exported_macro.py --loops 3
python exported_macro.py --loop-delay-min 1 --loop-delay-max 2
python exported_macro.py --dry-run
python exported_macro.py --start-action 12

Use Export Windows EXE to export the Python script first, then run PyInstaller through the GUI. PyInstaller is optional and is listed in requirements-dev.txt.

The Between loops dropdown beside the whole-macro loop setting offers no pause, a fixed pause, or a random range. Random mode chooses a fresh duration after every completed whole-macro loop except the final loop. The setting is saved in the macro and carried into Python and EXE exports. Older macros default to no pause.

Export Settings

The Settings > Export tab controls these defaults:

  • Default export directory: the starting folder for Python script exports and EXE output.
  • Python interpreter path: optional Python executable used in generated batch files and PyInstaller builds. Leave blank to use the Python running the app.
  • PyInstaller executable path: optional pyinstaller.exe path. Leave blank to run the selected Python with -m PyInstaller.
  • Default .exe options: optional extra PyInstaller switches such as --windowed --clean.

Secret Actions

Type Secret stores only an environment variable name, not the secret itself. At playback time it reads from the running process environment using os.environ["VARIABLE_NAME"].

For the GUI, set a Windows user or system environment variable such as WEBSITE_PASSWORD, then restart Macro Recorder + so the shortcut-launched process inherits the new value. For exported scripts, you can also set it in the terminal before running:

$env:WEBSITE_PASSWORD = "secret"
python exported_macro.py

If the variable is missing, GUI playback errors. Exported scripts prompt only when they are running in an interactive terminal.

Documentation

License

No license file is included yet. Add one before distributing this as an open source project or accepting outside contributions.


Built by Marton Vegh. Read the project case study.

About

The macro recorder that actually works. Windows desktop app built with Python and PySide6 for recording, editing, replaying, and exporting keyboard and mouse workflows. Exports to .py and .exe to make your macros run effortlessly. Fully open source and free.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages