This AutoHotkey v2 script brings macOS-style keyboard shortcuts to Windows, making it easier for Mac users to work in Windows. It's specifically designed for use with a standard Windows/PC keyboard layout, not an Apple keyboard.
This script assumes you're using a standard Windows keyboard where:
- You have a Windows key (which this script uses as the Command/⌘ equivalent)
- You have Alt keys (used as Option/⌥)
- You have a standard Windows keyboard layout
If you're using an Apple keyboard with Windows, this script may not be suitable as the key positions will be different.
Win + C: Copy (maps to Ctrl + C)Win + Shift + C: Copy with formatting (maps to Ctrl + Shift + C)Win + V: Paste (maps to Ctrl + V)Win + X: Cut (maps to Ctrl + X)Win + Z: Undo (maps to Ctrl + Z)Win + Shift + Z: Redo (maps to Ctrl + Y)Win + A: Select All (maps to Ctrl + A)Win + S: Save (maps to Ctrl + S)Win + F: Find (maps to Ctrl + F)Win + R: Refresh (maps to Ctrl + R)Win + T: New Tab (maps to Ctrl + T)
Win + Left/Right: Move cursor to start/end of line (maps to Ctrl + Left/Right)Win + Up/Down: Move cursor to start/end of document (maps to Ctrl + Up/Down)Alt + Left/Right: Move cursor by word (maps to Ctrl + Left/Right)Shift + Alt + Left/Right: Select text by word- Hold
Shiftwith any of the above to select text Home: Go to beginning of documentEnd: Go to end of documentShift + Home: Select to beginning of lineShift + End: Select to end of line
Ctrl + Alt + Left: Snap window to left half of screenCtrl + Alt + Right: Snap window to right half of screenCtrl + Alt + Enter: Toggle window maximize/restore
Win + Left Click: Maps to Ctrl + Left Click
Win + Tab: App switcher (like macOS Cmd + Tab)Win + Shift + Tab: Reverse app switcher- `Win + ``: Switch between windows of same app (maps to Ctrl + Tab)
Win + Shift + 5: Select area for screenshot (maps to Win + Shift + S)
Ctrl + Alt + DorWin + Space: Show Start menu (similar to showing Dock in macOS)- Preserves Win + Tab functionality for Windows task view
- Windows 10 or 11
- AutoHotkey v2
- A standard Windows/PC keyboard layout
- Install AutoHotkey v2 from autohotkey.com
- Download
mac.ahkfrom this repository - Double-click
mac.ahkto run the script - Press
Win + Pto verify the script is running - you should see a confirmation message - (Optional) Place a shortcut to the script in your Windows Startup folder to run automatically on boot
- The script uses the Windows key as a Command (⌘) key equivalent
- The Windows key still works normally to open the Start menu
- Some shortcuts might conflict with existing Windows shortcuts
- This script is NOT designed for Apple keyboards - it's for Windows/PC keyboards only
Feel free to submit issues or pull requests if you have suggestions for improvements or additional Mac-style shortcuts.
MIT License - feel free to modify and share!