Launch sale: 25% off all premium source code · ends October 15
Premium source code

Keyboard Automation Pro

Global hotkeys, a text expander and a macro recorder in Python that work in every app.

$9$12 -25%
Instant download Secure checkout by Stripe Free updates 14-day refund guarantee
15text transforms
2.1klines of code
13tests
0keystrokes stored
Keyboard Automation Pro in action

The complete version of our keyboard control tutorial: a text expander with smart triggers and placeholders, global hotkeys that type, paste, transform the selected text, open URLs or run programs, and a macro recorder that saves readable, editable steps. One JSON config, a live dashboard, a panic key, and nothing you type is ever stored.

Upgrades the free tutorial: How to Control your Keyboard in Python

What makes it “Pro”

Everything the tutorial leaves as an exercise, done properly.

Text expander

Instant (;sig) or word (btw) triggers, case-aware, backspace-aware, with per-app snippets.

Placeholders

{date+7:%A}, {clipboard:url}, {cursor}, {input:Name}, counters, UUIDs...

Transform selected text

UPPER, Title, snake_case, camelCase, kebab, slug, sort lines... in any app.

Macro recorder

Record with a hotkey, replay at any speed; recordings become readable JSON steps.

Hotkey actions

Type, paste, key sequences with pauses, open URLs/files, run programs, chain macros.

Safety first

Panic key, pause, conflict and OS-shortcut checks, and it never types into itself.

Private by design

Only the last few characters are kept in memory; nothing typed is saved.

Tested

13 pytest tests drive the whole engine through a fake keyboard backend.

Screenshots

Real output of the tools. Sample data is used wherever a screenshot would show private information (networks, emails, processes).

Free tutorial vs. Keyboard Automation Pro

The tutorial is great for learning the basics. This is the version you'd actually ship.

Free tutorialKeyboard Automation Pro
HotkeysOne exampleAny number, from a config file
Text expansionBasic abbreviationsSmart triggers, case, placeholders
MacrosRecord/replay raw eventsReadable, editable, speed and repeat
Text transforms—✓ 15 transforms
Per-app rules—✓
Safety—Panic key, pause, validation
Dashboard + stats—✓
Tests—13 pytest tests

A peek at the code

Clean, commented, modular Python. Here's the start of keyauto/expander.py:

keyboard-automation-pro/keyauto/expander.py 2410 lines of Python in this project
def _match(self) -> Optional[Expansion]:
    buf = self.buffer
    for s in self.snippets:
        if not self._active(s):
            continue
        if s.instant:
            typed = buf[-len(s.trigger):]
            if self._same(typed, s) and self._word_start(buf, len(s.trigger), s):
                return Expansion(s, len(s.trigger), "", self._case(typed, s))
        elif buf and buf[-1] in BOUNDARY:
            word = buf[:-1][-len(s.trigger):]
            if len(buf) > len(s.trigger) and self._same(word, s) and \
                    self._word_start(buf[:-1], len(s.trigger), s, required=True):
                return Expansion(s, len(s.trigger) + 1, buf[-1], self._case(word, s))

The rest of the source code is locked

Get every module of Keyboard Automation Pro, plus tests, the README guide and free updates, for $9.

Unlock the full source · $9

What's inside

  • Full source code (≈2,100 lines, 13 modules)
  • A starter config with useful snippets and hotkeys
  • README with an architecture guide
  • 13 unit tests (pytest)
  • Free updates + commercial-use license
Save 67%

Get all 5 tools for $21.75

The Python Tools Pro Pack includes Keyboard Automation Pro plus our other premium tools, for $21.75 instead of $65 when bought one by one.

What's in the pack?
Python Tools Pro Pack

FAQ

What do I need to run it?

Python 3.8 or newer. Windows and Linux use the keyboard package (on Linux run it as root or add yourself to the input group); macOS uses pynput and needs Accessibility permission for your terminal.

How do I get the files after paying?

You're sent straight to your download page, and we email you the link too. The link keeps working, so you can re-download updated versions later. Lost it? Recover your downloads with your email.

Is this beginner-friendly?

If you've followed our free tutorial, yes. The code is split into small, commented modules, and the README walks through the architecture. It's the ideal next step after the tutorial.

Can I use it in my own projects?

Yes. You can modify it, learn from it, and ship your own tools and apps built on it, even commercially. The only thing you can't do is redistribute or resell the source code itself.

What if it's not for me?

Email us within 14 days and we'll refund you. No questions asked.

Get Keyboard Automation Pro now

$9 one-time. Instant download, free updates.

More premium source code