Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

windows 8 - Macro Keys not Detected AutoHotkey

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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:

enter image description here

then here:

enter image description here

and if active, you should see something like here:

enter image description here

In the step 6 the hex value column is here:

enter image description here

If that is not working for you, try Alternate solutions in the link that I provided before.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...