new version coming soon (outdated)
Update: A driver is required for the new version of the script, so I will be making a new tutorial, stay tuned.
This works with both USB or PS/2 keyboards, and can turn any secondary keyboard into a handy dandy DIY stream deck.
Download links below:
Macroboard script: https://www.mediafire.com/file/ceea6z2l7tfvwhv/MacroBoardV2.zip/file
AutoHotKey: https://www.autohotkey.com/
LuaMacros: http://www.hidmacros.eu/luamacros.zip
Secondary_MACRO_keyboard: https://github.com/Parrot023/Secondary_MACRO_keyboard/archive/refs/heads/master.zip
(Required for PS/2 Support): https://github.com/evilC/AutoHotInterception
IMPORTANT:
With the release of V2 of Macroboard there are some changes in regards to the way you inject the HID of your USB keyboard. (Scroll Down For PS/2 Info)
With your LUAmacros HID/PID key you will want to extract specific aspects to input into your script.
For example, in the case of a key like this:
\\?\HID#VID_0C45&PID_7603&MI_00#8&1F43B75D&0&0000#{884B96C3-56EF-11D1-BC8C-00A0C91405DD}
You will want to copy the HID#VID_0C45&PID_7603 parts and type them like so:
0x0C45, 0x7603
This will ensure that the new version will work.
For PS/2 Support:
In order to make the code as efficient as possible, it is required that if you want to use a PS/2 keyboard with this script, you will have to download AutoHotInterception and run the monitor script. This will give you a handle that looks something like ACPI\PNP0303. You will then take your ID and add it to the Macroboard script by replacing the line:
id1 := AHI.GetKeyboardId(0x0C45, 0x7603)
with
id1 := AHI.GetKeyBoardIdFromHandle("ACPI\PNP0303")
(Replace the "ACPI\PNP0303" with the one of your keyboard, but keep the quotes.)
Other References:
https://www.autohotkey.com/docs/Hotkeys.htm
https://www.autohotkey.com/docs/KeyList.htm
https://www.youtube.com/watch?v=Arn8ExQ2Gjg&t (Taran's DIY 87-Key Macro Keyboard Video)
https://youtu.be/lIFE7h3m40U (The Art of the Bodge: How I Made The Emoji Keyboard Video)
Subscribe to see the latest videos!
https://www.youtube.com/channel/UCMQ99Vu3YVT_0ioGtPj2tL
https://www.facebook.com/PrairieRanger
http://www.twitch.tv/prairieranger
https://www.elgato.com/en/gaming/game-capture-hd60
https://www.youtube.com/playlist?list=PLfTLP1s-LWUAvew7YaRlMvpVBOoPzVhaN