未检测到宏键 AutoHotkey [英] Macro Keys not Detected AutoHotkey
问题描述
我刚刚购买了 Steelseries apex 游戏键盘和竞争对手的鼠标.不幸的是,这些产品中的每一个都有不同的宏和键盘照明软件,这两个最多是平庸的.
I have just purchased the Steelseries apex gaming keyboard and rival mouse. Unfortunately, each of these products has different software for macros and keyboard lighting, both of which are mediocre at most.
与其让 2 个进程在后台运行,也不必使用 2 个蹩脚的程序来编写我的宏,我决定将 AutoHotkey 用于我的宏,其中一些我计划制作得非常复杂.鼠标在 AutoHotkeys 中没有问题,两个侧键使用 XButton1 和 XButton2,但是无论我做什么,我都无法检测到我的键盘宏键(M1 到 M12 和 MX1 到 MX10).
Instead of having 2 processes running in the background and having to use 2 crappy programs to write my macros, I have decided to use AutoHotkey for my macros, some of which I plan on making quite complex. The mouse was no problem in AutoHotkeys, with the two side buttons using XButton1 and XButton2, however no matter what I do, I can't detect my keyboard macro keys (M1 to M12 and MX1 to MX10).
使用键盘钩子不会检测到任何键,在线查看我也找不到如何引用这些键.我什至不确定 Windows 是否会看到它们,因为当我尝试以普通快捷方式将它们输入到快捷键字段时,它们什么也不做.所以我的问题是:
Using a keyboard hook doesn't detect any keys, and looking online I can't find how to reference these keys either. I'm not even sure windows sees them, as when I try to input them into the shortcut key field in a normal shortcut they do nothing. So my questions are:
顺便说一句,我使用的是 Windows 8,这里是 鼠标 的链接和键盘.提前致谢.
Btw I'm using Windows 8 and here are the links to the mouse and keyboard. Thank you in advance.
推荐答案
您可以按照以下步骤获取 AutoHotkey 文档中未列出的特殊键的名称 此处.
You can get the name for special keys that are not listed in AutoHotkey documentation by following steps here.
一些注意事项和解释:
您可以在第 1 步中使用该脚本:
You can use that script for step 1:
#InstallKeybdHook
Sleep, 99999999999999999999
运行时,通过以下方式检查键盘钩子是否处于活动状态:
When you run it, check if keyboard hook is active by:
按这里:
然后在这里:
如果处于活动状态,您应该会看到如下所示的内容:
and if active, you should see something like here:
在第 6 步中,十六进制值列在此处:
In the step 6 the hex value column is here:
如果这对您不起作用,请尝试我之前提供的链接中的替代解决方案.
If that is not working for you, try Alternate solutions in the link that I provided before.
这篇关于未检测到宏键 AutoHotkey的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!