https://github.com/ckunte/mackeyboard
Mac Keyboard to Windows Key Mappings
https://github.com/ckunte/mackeyboard
ahk apple-keyboard autohotkey autohotkeys hot-keys mac-keyboard mackeyboard windows
Last synced: about 2 months ago
JSON representation
Mac Keyboard to Windows Key Mappings
- Host: GitHub
- URL: https://github.com/ckunte/mackeyboard
- Owner: ckunte
- License: mit
- Created: 2020-04-05T06:15:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-02T09:14:55.000Z (4 months ago)
- Last Synced: 2025-03-24T09:15:25.910Z (about 2 months ago)
- Topics: ahk, apple-keyboard, autohotkey, autohotkeys, hot-keys, mac-keyboard, mackeyboard, windows
- Language: AutoHotkey
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mackeyboard
_Mac Keyboard to Windows Key Mappings_Years of accumulated muscle memory is useful to be efficient at work. When our fingers sense a Mac keyboard underneath, they instinctively adapt to a Mac-style of hot keys. This repository should assist in ensuring continuity when using a Mac keyboard on Windows operating system with the help of [AutoHotkey][ahk] key-mapping tool.
To get this working,
1. Download and install a copy of [AutoHotkey][ahk] in a folder, say, `C:\Apps\misc\ahk`
2. Download a copy of `mackeyboard.ahk` from this repository
3. Run the following in Command Prompt to activate all key mappings:
```dos
C:\Apps\misc\ahk\v2\AutoHotkey64.exe "C:\Apps\misc\ahkscripts_v2\mackeyboard.ahk"
```4. Optional: To automate this at boot, a batch file, say `mackeyboard.bat`, can be created with the following contents:
```dos
@echo off
C:\Apps\misc\ahk\v2\AutoHotkey64.exe "C:\Apps\misc\ahkscripts_v2\mackeyboard.ahk"
exit
```The batch file can then be placed under the Startup folder. (Get to the Startup folder by running `shell:startup`.)
## Works with
1. Apple Keyboard – any model
2. Any Keyboard with MacOS layout## Application-specific shortcuts
To write application-specific shortcuts, as an example, the following may be used:
```autohotkey
; In Microsoft Outlook only
;#IfWinActive ahk_class rctrl_renwnd32
#HotIf (WinActive("ahk_class rctrl_renwnd32"))::gm::Good morning,
::gf::Good afternoon,
#HotIf
```## Trivia
May 2017. Three months ago, I began using my Logitech G610 keyboard at work to avoid managing KVM hygiene everyday, side-effect of a hot-desk policy. It is a fine, if hefty, full-sized keyboard, and that became a problem. I mean at the end of every work day, I'd unplug to shove it inside a one-foot locker, leaving very little usable room for anything else.
Not wanting to buy yet another, I pulled my seldom-used Apple Bluetooth wireless keyboard out. This is in many ways worse than its large, corded sibling. For the portability, you inherit its handicap of missing keys — some of them critical to be productive; this aside from the prospect of blowing one's mind with jumbled hot keys across OSes — Mac at home; Windows at work. To recover sanity, I looked at ways to remap keys so I could use Mac hot keys on Windows, and found [AutoHotkey][ahk] promising. As a general scripting tool, however, there is no way around the manual, and it so took me a good few trial and error compiles to get to a set of usable hot key mappings.
It runs just fine in the background capturing all my hot keys, pressed in Mac style, and transforming them into Windows hot keys on-the-fly. In addition, it's also good as a simple text expander, which saves me some repetitive typing.
[ahk]: https://www.autohotkey.com/ "AutoHotkey"