ℹ️ 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 languages
shotcut fromControl Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys
due to conflicting. - Some Windows built-in keyboard shortcuts will be overridden. For example:
win + ↑ / ↓ / ← / →
(snap window to side). Changemac.ahk
accordingly if you prefer to keep the default behavior.
- Install https://www.autohotkey.com/
- Copy and save the content of
mac.ahk
in a text file, named asmac.ahk
- Double click on
mac.ahk
file
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
Hi @ascendbruce thank you very much for this, you really saved my life! I come from mac and in my new job we use Windows and I cannot stand Windows shortcuts, my mind just bug.
I need your help for other 4 things that I do on mac that i cannot do on Windows:
1 - On Chrome I usually press
commad + tap
on touchpad to open a link on a new tab. So how can I doalt + tap
and sendcrt + tap
?2 - How can I drag windows with
three fingers
, as I do on Mac?3 - On Mac I use
command + '
to change windows of the same App (which is different fromcommand + tab
which change from app to app). Is there a similar way to do that on Windows?4 - Last but not least: on Mac I use
command + space
to open the Spotlight. On Windows I use athree finger tap
. Is there a way to use it asalt + space
?Could you help me my friend?