Skip to content

colinmacleod/mac-autohotkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mac-Style Shortcuts for Windows

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.

Important Note About Keyboard Layout

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.

Features

Basic Mac Shortcuts (using Windows key as ⌘)

  • 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)

Text Navigation and Selection

  • 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 Shift with any of the above to select text
  • Home: Go to beginning of document
  • End: Go to end of document
  • Shift + Home: Select to beginning of line
  • Shift + End: Select to end of line

Window Management

  • Ctrl + Alt + Left: Snap window to left half of screen
  • Ctrl + Alt + Right: Snap window to right half of screen
  • Ctrl + Alt + Enter: Toggle window maximize/restore

Mouse

  • Win + Left Click: Maps to Ctrl + Left Click

App Switching

  • 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)

Screenshots

  • Win + Shift + 5: Select area for screenshot (maps to Win + Shift + S)

Additional Features

  • Ctrl + Alt + D or Win + Space: Show Start menu (similar to showing Dock in macOS)
  • Preserves Win + Tab functionality for Windows task view

Requirements

  • Windows 10 or 11
  • AutoHotkey v2
  • A standard Windows/PC keyboard layout

Installation

  1. Install AutoHotkey v2 from autohotkey.com
  2. Download mac.ahk from this repository
  3. Double-click mac.ahk to run the script
  4. Press Win + P to verify the script is running - you should see a confirmation message
  5. (Optional) Place a shortcut to the script in your Windows Startup folder to run automatically on boot

Notes

  • 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

Contributing

Feel free to submit issues or pull requests if you have suggestions for improvements or additional Mac-style shortcuts.

License

MIT License - feel free to modify and share!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published