【发布时间】:2015-05-15 20:48:26
【问题描述】:
我想使用 AutoHotKey 启用 Romanian Programmers 键盘布局,因为我需要使用某些具有与“不寻常”布局重叠的某些快捷方式的应用程序,并且将 Right Alt 转换为 AltGr 是不可接受的。
请查看我的答案以获得可行的解决方案,并随时提出改进建议。
【问题讨论】:
标签: windows keyboard keyboard-shortcuts autohotkey keyboard-layout
我想使用 AutoHotKey 启用 Romanian Programmers 键盘布局,因为我需要使用某些具有与“不寻常”布局重叠的某些快捷方式的应用程序,并且将 Right Alt 转换为 AltGr 是不可接受的。
请查看我的答案以获得可行的解决方案,并随时提出改进建议。
【问题讨论】:
标签: windows keyboard keyboard-shortcuts autohotkey keyboard-layout
这是我最终使用的脚本:
;Disable the Right Alt key (the keydown event will still be fired, but that's OK)
RAlt::Return
RAlt & a::
if GetKeyState("Shift", "P") {
Send Ă
} else {
Send ă
}
Return
RAlt & q::
if GetKeyState("Shift", "P") {
Send Â
} else {
Send â
}
Return
RAlt & i::
if GetKeyState("Shift", "P") {
Send Î
} else {
Send î
}
Return
RAlt & s::
if GetKeyState("Shift", "P") {
Send Ș
} else {
Send ș
}
Return
RAlt & t::
if GetKeyState("Shift", "P") {
Send Ț
} else {
Send ț
}
Return
RAlt & e::Send €
RAlt & c::Send ©
请注意,我仅从罗马尼亚程序员布局中映射了我需要的键,其中有一些不常见符号的快捷方式。
【讨论】: