未检测到宏键AutoHotkey [英] Macro Keys not Detected AutoHotkey
问题描述
我刚购买了Steelseries顶级游戏键盘和竞争对手的鼠标.不幸的是,这些产品中的每一个都具有用于宏和键盘照明的不同软件,两者最多都是中等水平.
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:
Btw I'm using Windows 8 and here are the links to the mouse and keyboard. Thank you in advance.
推荐答案
您可以通过执行 一些注释和解释:
您可以将该脚本用于第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屋!