我正在尝试使用 AutoHotkey 以尊重大写和小写的方式映射一些组合键,但我无法让它工作。例如:我想要:
AppsKey + L 键入“a” AppsKey + Shift + L 键入“b”
我失败的尝试:
A. 两种组合都只给出“b”(“+”似乎是shift的符号):
AppsKey & l::Send a
AppsKey & +l::Send b
Run Code Online (Sandbox Code Playgroud)
B. 不会编译并给出“无效热键错误”:
AppsKey & l::Send a
AppsKey & Shift & l::Send b
Run Code Online (Sandbox Code Playgroud)
C. 不会编译并给出“重复热键错误”(这是有道理的,因为热键定义似乎不区分大小写):
AppsKey & l::Send a
AppsKey & L::Send b
Run Code Online (Sandbox Code Playgroud)
AutoHotkey 中可以进行这种类型的映射吗?我缺少什么才能使它工作?
根据我在问题Replace [ with { and ] with } using AutoHotkey 上的工作,我将使用以下逻辑:
AppsKey & l::
if(GetKeyState("Shift"))
SendInput, b
else
SendInput, a
return
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1518 次 |
最近记录: |