Macro Keys not Detected AutoHotkey

情到浓时终转凉″ 提交于 2019-12-18 09:36:29

问题


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.

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).

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:

  • What is the name for the macro keys on my keyboard in AutoHotkey?
  • Is there any way to work around this problem without having to use the Steelseries Engine?
  • If I can't access them normally, is there a way to reassign them without external software?
  • (Optional) Is there any way to adjust the lighting on the keyboard and mouse without the Steelseries software as well?

    Btw I'm using Windows 8 and here are the links to the mouse and keyboard. Thank you in advance.


    回答1:


    You can get the name for special keys that are not listed in AutoHotkey documentation by following steps here.

    Some notes and explanations:

    You can use that script for step 1:

    #InstallKeybdHook
    Sleep, 99999999999999999999
    

    When you run it, check if keyboard hook is active by:

    press here:

    then here:

    and if active, you should see something like here:

    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.



    来源:https://stackoverflow.com/questions/24921492/macro-keys-not-detected-autohotkey

  • 易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
    该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!