stevenilsen123 / mac-keyboard-behavior-in-windows

This AutoHotKey script gets you all the MacOS keyboard shortcuts you love, in Windows!
245 stars 14 forks source link
autohotkey macos windows

MacOS Keyboard Behavior in Windows

logo.png



This AutoHotKey script seeks to deliver all the superior MacOS keyboard behavior you love in Windows!

Prerequisites

  1. A Windows-style keyboard; this solution is not designed to work with a Mac keyboard
  2. AutoHotKey installed on your PC

NOTE

This project provides scripts for both AHK 2.0+ and AHK 1.1, but the 1.1 script is no longer being updated or tested as of 09/09/2023

  1. Swap your Ctrl and Alt keys using Microsoft Power Toys

PowerToys_KeyboardManager.png

NOTE

If your machine is restricted by an admin and you are unable to install Power Toys from the Microsoft store link above, you can try installing the per-user scope version of Power Toys from the Power Toys GitHub PowerToys_User_Download.png

  1. Optional (but highly recommended): Turn on PowerToys Run and assign it to Ctrl+Space (Since you swapped your Ctrl and Alt keys in the previous step)

PowerToys_Run

  1. Optional: Install Monosnap for screenshots.

Usage

  1. Prerequisites first!
  2. Create a new mac.ahk file in the location of your choice. I recommend %userprofile%/Documents/AutoHotKey/mac.ahk.
  3. Open your newly created file in a text editor such as Notepad.
  4. Copy the contents of mac.ahk into the file you created and save changes.

NOTE

mac1.1.ahk is available if you still want to run AHK 1.1, but this script is no longer being updated or tested as of 09/09/2023

  1. Run the file by double-clicking it in Windows Explorer.
  2. Optionally, learn how to use the Windows Startup folder or Task Scheduler to automatically start your script whenever you log in.

Buy me a coffee (optional) ☕

Donate

https://ko-fi.com/stephennilsen


Available shortcuts in this release

This script seeks to implement all shortcuts listed on the official MacOS keyboard shortcuts page, with the exception of the Accessibility Shortcuts section added in May 2023. The list below is current with that page as of 09/09/2023. Items that are checked off have been implemented in the latest release.

IMPORTANT NOTE

The list of keyboard shortcuts below is formatted Apple-style. Use this keymap to perform these shortcuts in Windows:

  • Command = Alt key
  • Option = Windows key
  • Control = Ctrl key

Cut, copy, paste, and other common shortcuts

Sleep, log out, and shut down shortcuts

Finder and system shortcuts

Document shortcuts

The behavior of these shortcuts may vary with the app you're using.