Guide

AutoHotkey for Mac: What to Use Instead

Updated

Close-up of a Windows keyboard showing the Windows key and Alt, two modifiers AutoHotkey hotkeys use that work differently on a Mac.
Photo: Ruben Boekeloo / Pexels

There’s no AutoHotkey for Mac. AutoHotkey is a Windows scripting language, and it has never had a macOS version. You can run it inside a Windows virtual machine on a Mac, such as Parallels Desktop or VMware Fusion. Your scripts then act on the Windows apps in that machine and can’t touch macOS.

What replaces it depends on what you used it for. AutoHotkey does several jobs: remapping keys, expanding text, firing hotkeys, running macros and scripting whole workflows. On a Mac, each of those has its own tool, and most of them are free.

AutoHotkey’s jobs, and the Mac tool for each

Prices are the vendors’ own, checked October 2026.

What you did in AutoHotkey AutoHotkey example Mac tool Price
Remap a key CapsLock::Esc Karabiner-Elements; System Settings → Keyboard → Keyboard Shortcuts → Modifier Keys for modifier keys only Free
Hotstrings (text expansion) ::btw::by the way Espanso; Text Replacements (built in); Keyboard Maestro typed-string triggers Free
Hotkeys that open or run things #n::Run "notepad" Raycast hotkeys, the Shortcuts app (one at a time), Super Shortcuts Free tiers
Different hotkeys per app #HotIf WinActive(...) Super Shortcuts (per app and per website), Keyboard Maestro macro groups Free tier / $36
Macros: send keys, click, wait, repeat Send, Click, Sleep, Loop Keyboard Maestro; Super Shortcuts for simpler ones $36 one-time / free tier
Scripts with logic, files and windows functions, if, WinMove Hammerspoon (JavaScript or Lua) Free
Mouse buttons and gestures XButton1:: BetterTouchTool $15 / $25
Snapping windows WinMove Rectangle, or the window tiling built into macOS 15 Sequoia Free

The closest single replacements

If you want one app rather than a set, two come closest, from opposite directions:

For the two most common single jobs, there’s a free specialist:

The Mac automation apps compared guide covers each category, what each tool costs and how they collide when you run several.

Translating AutoHotkey habits to a Mac

A few things trip up most people who switch:

Where Super Shortcuts fits

Super Shortcuts is our app. It covers the hotkey job and the simpler macros. It’s built around what #HotIf did: one key that does different things in different apps.

You pick a Super key (we recommend Caps Lock) and hold it. Every other key then runs a shortcut you made. A shortcut can open an app or a website, press keys, type or paste text, pick a menu item, or run a shell script or AppleScript. You can put waits and If / Repeat steps between those actions. You decide which app or website each shortcut works in. For example, Super key + R can reply in Mail and make text red in Google Docs. There’s no script to write. Holding the key shows the Shortcut Keyboard, so you can see what’s bound instead of remembering it.

What it doesn’t do: abbreviation-triggered text expansion (use Espanso or Text Replacements), raw key remapping below the app layer (Karabiner-Elements) or a full scripting API (Hammerspoon). The free tier covers up to 10 shortcuts.

Frequently asked questions

Is there an AutoHotkey for Mac?

No. AutoHotkey is a Windows scripting language, and there is no macOS version. On a Mac, separate tools cover its jobs: Karabiner-Elements for key remaps, Espanso or the built-in Text Replacements for hotstrings, and Keyboard Maestro or Hammerspoon for macros and scripts. For launching things, use a hotkey tool such as Raycast or Super Shortcuts.

What's the best free AutoHotkey alternative for Mac?

A free combination covers most of it: Karabiner-Elements for remapping keys and Espanso for hotstrings. Add Hammerspoon if you want to write scripts the way you wrote .ahk files. All three are open source.

Can I run my .ahk scripts on a Mac?

Only inside Windows software: a Windows virtual machine (Parallels Desktop or VMware Fusion), or CrossOver, which runs it with limited support. Either way, AutoHotkey works on the Windows apps in there, but it can't see or control your Mac apps. There's no converter from .ahk to a Mac tool, so you rebuild each script in whichever tool does that job.

Is Keyboard Maestro the Mac version of AutoHotkey?

It's the closest in scope: hot keys, typed-string triggers, macros with conditions and loops, and typing and clicking in any app. You build those macros in a visual editor, though, without writing code. If writing code is the part you liked, Hammerspoon is the closer match.

What's the Mac equivalent of AutoHotkey hotstrings?

Text Replacements, in System Settings → Keyboard, does simple ones for free in most native Mac apps. Espanso is the closest match. It reads plain-text config files, uses triggers like :btw and supports variables such as today's date. It runs on Windows too, so one file can serve both machines. Keyboard Maestro has typed-string triggers as well.

Does Super Shortcuts replace AutoHotkey?

For hotkeys and simple macros, yes. From one Super key, it can open apps and sites, press keys, type or paste text, pick menu items and run shell scripts or AppleScript. Each app or website can have its own shortcuts. It doesn't do abbreviation-triggered text expansion or low-level key remapping, and it doesn't have a scripting API like Hammerspoon's. Espanso, Karabiner-Elements and Hammerspoon are the tools for those.

Your download is starting.

  1. 1
    Open the file and drag Super Shortcuts to Applications.
  2. 2
    Launch it and click Open if macOS asks.
  3. 3
    Turn on Accessibility when it asks. That's how it presses keys and clicks menus for you.

Didn't start? Download again