- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我要坚持
alt + spacebar + U for the up key
alt + spacebar + H for the left arrow key
alt + spacebar + J for the right arrow key
alt +spacebar + N for the down arrow
这可能与 AutoHotkey 相关吗?
最佳答案
您好,欢迎使用 AutoHotkey,
你可能想看看AHK核心的基本介绍,Hotkeys:
https://www.autohotkey.com/docs/Hotkeys.htm
配置只发送另一个键的热键是相当简单的。例如,alt + spacebar for the up key
可以翻译成
!Space::
send {up}
return
(注意alt
是修饰符,可以写成!
)或简称:
!Space::send {up}
spacebar + U for the up key
将是 Space & U::send {up}
。
但您正在寻找 2 个键加上一个修饰符 (alt)。对于由不止两个键 (alt + space + u
) 触发的热键标签,您需要一个解决方法:
!Space:: ; once alt + space was pressed, ...
while(getKeyState("alt") || getKeyState("space") || getKeyState("u")) { ; ... while either of these is being pressed down, ...
hotKey, *u, altSpaceU, ON ; u should now send {up}
}
hotKey, *u, altSpaceU, OFF
return
altSpaceU: ; note: this is a label, no hotkey
send {up}
return
请不要被这个吓倒。 AutoHotkey 实际上非常强大且易于学习。遗憾的是,(afaik) 这是解决多于两个键的热键的唯一可行方法。
编辑老天为什么没人告诉我..
#if getkeystate("alt")
!space::send {up}
#if
显然是一种更好的解决方案
关于AutoHotkey 的方向键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30157500/
警告:我不确定这篇文章是否更适合 SuperUser 或 SE 系列中的其他论坛。如果您知道这篇文章的更合适位置,请告诉我,我会迁移它。 我知道 eclipse for Java 扩展了 Ctrl+L
我正在使用 colemak,因此我重新映射了我的方向键,就像这样 noremap n h noremap e j noremap i k noremap o l noremap h n noremap
我想知道您是否可以像 Java、C+ 等一样接收键盘输入。或者如果没有外部库? 以下是有关 2D 迷宫游戏的一些信息: 您使用箭头键在迷宫中导航。您可以使用向上和向下箭头键选择菜单中的对象,例如: -
我想使用 google map api 来获取两个位置之间的路线。在我的 IOS 应用程序中。我尝试为项目创建公钥并在开发人员控制台中启用使用 API。但我收到此错误:此 ip 站点或移动应用程序未被
是否有内置的方法将箭头键(右、左)绑定(bind)到 buefy 分页元素?还是我需要使用 vanillaJS 键盘事件? 最佳答案 Vue 定义 key modifiers 关于vue.js -
我是一名优秀的程序员,十分优秀!