-
Get the portable installer for AHK Zip Files from here: https://github.com/TheArkive/ahk-pi
CAUTION: Does not work behind a proxy anymore! :( -
Get AHK Zip Files from here: https://www.autohotkey.com/download/
-
Get AHK2EXE Compiler here:
https://github.com/AutoHotkey/Ahk2Exe
- Get VSCode Extention: mark-wiemer.vscode-autohotkey-plus-plus
- Download AHK V1 and V2 Zips from https://www.autohotkey.com/download/
- Download https://github.com/AutoHotkey/Ahk2Exe/releases/latest
- I use the base path: C:\Users\xcg5545.cmder\opt.autohotkey-manual
- Extract all three things to this base folder
- Copy the vscode config below and update the paths according to your base path:
"ahk++.file.interpreterPathV1": "C:\\Users\\xcg5545\\.cmder\\opt\\.autohotkey-manual\\AutoHotkey_1.1.37.01\\AutoHotkeyU64.exe", "ahk++.file.interpreterPathV2": "C:\\Users\\xcg5545\\.cmder\\opt\\.autohotkey-manual\\AutoHotkey_2.0.5\\AutoHotkey64.exe", "ahk++.file.helpPathV2": "C:\\Users\\xcg5545\\.cmder\\opt\\.autohotkey-manual\\AutoHotkey_2.0.5\\AutoHotkey.chm", "ahk++.file.helpPathV1": "C:\\Users\\xcg5545\\.cmder\\opt\\.autohotkey-manual\\AutoHotkey_1.1.37.01\\AutoHotkey.chm", "ahk++.file.compilerPath": "C:\\Users\\xcg5545\\.cmder\\opt\\.autohotkey-manual\\Ahk2Exe1.1.37.00a\\Ahk2Exe.exe"
- Open the mac-hotkeys.ahk file
- Use the VSCode Command menu to compile it (either non-Gui or GUI Variant)
Important: use AHK v1.1 NOT 2! - Register the resulting exe in autostart via Win R + regedit
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run => Create new Key: "mac-hotkeys" as REG_RZ with the path of the compiled AHK Script:
=> "C:\Users\xcg5545.cmder\dev\ahk-mac-hotkeys-on-win\mac-hotkeys.exe"
- AHK 1.1 Docs: https://www.autohotkey.com/docs/v1/
- AHK v2 Docs: https://www.autohotkey.com/docs/v2/
- Newer Option: https://gist.github.com/ascendbruce/677c3169259c975259045f905cd889d6
- Even newer option: https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows
First version published on github