ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows
Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)
With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.
Here's some examples of how this script work:
| you want to press | what you're actually pressing | AutoHotKey tells Windows |
|---|---|---|
| cmd + c | alt + c | ctrl + c |
| cmd + v | alt + v | ctrl + v |
| cmd + r | alt + r | F5 |
| cmd + ↑ | alt + ↑ | Home |
| cmd + shift + [ | alt + shift + [ | ctrl + shift + Tab |
| ... | ... | ... |
Note that:
- you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you (1) use a PC keyboard on Mac and have swapped [cmd] and [option] keys via Mac system preferences (2) you are familiar with mac shortcuts in macs (3) you want to use the PC keyboard and mac-style shortcuts on PC.
- To use
cmd + shift + ↑ / ↓ / ← / →(select text between cursor and top / bottom / beginning of line / end of line), You should disable theBetween input languagesshotcut fromControl Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keysdue to conflicting. - Some Windows built-in keyboard shortcuts will be overridden. For example:
win + ↑ / ↓ / ← / →(snap window to side). Changemac.ahkaccordingly if you prefer to keep the default behavior.
- Install https://www.autohotkey.com/
- Copy and save the content of
mac.ahkin a text file, named asmac.ahk - Double click on
mac.ahkfile
Complete the step of "To Run Once" section first.
Place mac.ahk file (or make a shortcut) at C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
In case this helps - a two-step process made things super easy for me. First disable Windows shortcuts that conflict with your desired Mac / other shortcuts. Then use app of choice to configure new shortcuts.
This prevents Windows from fighting you on the new shortcuts you want to make - a persistent issue for many people.
You can keep core Windows shortcuts you like - the important ones.
I found this much more effective - and bug-free - than trying to remap Windows shortcuts in one go.
1. Use Windows PowerToys (free download with Windows Professional) to disable shortcuts
e.g.
2, Use shortcuts app of your choice to create new shortcuts
e.g.
I'm using an app made in Rust called Shortcuts Remapper Studio - very user-friendly and available in Windows store.
Windows PowerToys
Shortcuts Remapper Studio:
SPAN Finder: