Autohotkey for Razer Blackwidow Macro Keys

autohotkeyrazer-keyboard

I'm having extreme difficulty trying to map the M1-M5 macro keys on the Razer Blackwidow keyboard using AutoHotKey.

A similar question was previously asked on this forum but no answer or solution was supplied. That question refers to an earlier question about solving the problem in Linux. The earlier question was solved. Apparently, M1-M5 are regular keys, but they need to be specifically enabled before pressing them will generate a scancode. The Linux solution involved some code that was ported to Python that sends the correct SET_REPORT message to Razer keyboards to enable these keys. The author of the previous Windows question found that it did not work in Windows.

Is there a solution that works in Windows that would enable me to map these keys using AutoHotKey?

Best Answer

This isn't a perfect solution, but it does work. Since you have a Razer keyboard, you should have Razer Synapse installed. With this, you can use the Macro keys to press something you don't normally press, like Control Alt F10, in the Razer Synapse macro editor. Then, you set AutoHotkey to watch for Control Alt F10 (^!F10 in AutoHotkey) and execute whatever you want. Again, not perfect as this doesn't register the macro keys as unique keys, but it does let you push M5 and have something happen. I hope this at least works around your problem until someone gives a better answer.

Related Question