Skip to content

Instantly share code, notes, and snippets.

View Multihuntr's full-sized avatar

Brandon Victor Multihuntr

  • La Trobe University
View GitHub Profile
@Multihuntr
Multihuntr / Macro-clipboard.md
Last active July 4, 2025 09:13
Macro recording/playback in OS (across all applications)

What is it?

It's for repetitive tasks that are too small to be bothered writing a macro script into something like AutoHotKey, but annoying and repetitive enough that you want some automation.

It allows you to record some keypresses, and then replay those keypresses, using keyboard shortcuts. It's like the clipboard, but for keypresses instead of text. Recordings do not persist across restarts/logins, and are overwritten when you record a new macro. (Does not actually interact with the clipboard at all)

Setup

  1. Add keyboard shortcuts to trigger the record.py and replay.py scripts. They work globally on the OS. I use ctrl+super+e for record and super+e for replay.
  2. Install keyboard python library.