是否可以在 Apple Mac 键盘上使用 Autohotkey 将 OSX 键盘快捷键转换为 PC 上的 Windows 7 等效项?

Nei*_*eil 2 windows keyboard macos autohotkey translate

如果一位经验丰富的 Apple Mac 用户花了数年时间学习最喜欢的应用程序的 OSX 键盘快捷键,正在考虑迁移到 Windows 7 或 8 PC,并且他们也想翻译键盘快捷键知识。

是否可以在 PC 上使用正版 Apple Mac 键盘并使用 Autohotkey 将修饰键转换为以下翻译表中的等效 PC 版本:

Mac PC cmd/Apple ctrl ctrl Windows/开始

因此,每次我按下 Mac 键盘上的“Apple”键时,它都会执行 PC 上的“ctrl”键,每次我按下 Apple 键盘上的“ctrl”键时,它都会执行 PC 上的“Windows/Start”键个人电脑。

我希望这是一个永久功能,而无需添加任何额外的修饰键。

谢谢!

Ell*_*olf 5

是的,这是可能的。您需要在启动时运行此脚本。来源

#InstallKeybdHook
#SingleInstance force
SetTitleMatchMode 2
; #Include Apple Wired Keyboard.ahk  ; Required for Eject Button. See Source.
SendMode Input

; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT
; # = WIN

; media/function keys all mapped to the right option key
RAlt & F7::SendInput {Media_Prev}
RAlt & F8::SendInput {Media_Play_Pause}
RAlt & F9::SendInput {Media_Next}
RAlt & F10::SendInput {Volume_Mute}
RAlt & F11::SendInput {Volume_Down}
RAlt & F12::SendInput {Volume_Up}

; swap left command/windows key with left alt
LWin::LAlt
LAlt::LWin ; add a semicolon in front of this line if you want to disable the windows key

; Eject Key
F20::SendInput {Insert}

; F13-15, standard windows mapping
F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
F15::SendInput {Pause}

;F16-19 custom app launchers, see http://www.autohotkey.com/docs/Tutorial.htm for usage info
F16::Run Notepad
F17::Run calc.exe
F18::Run http://www.overclock.net
F19::Run cmd
Run Code Online (Sandbox Code Playgroud)