Remap keyboard output
![remap keyboard output remap keyboard output](https://2.bp.blogspot.com/-89df9i84u00/VMjOwUCgavI/AAAAAAAAAFA/t_jNV3q1fnQ/s1600/dosbox-mapper.png)
This is probably overkill for most uses, so it's wiser to use "NumpadEnter", or another key that's not affected by NumLock. This way, I can easily define different remaps in AHK to "Numpad5 & ::" and "NumpadClear & ::", while the scancode stays the same. I have set a different key to toggle "NumLock". My main keyboard has no Numpad, so I never use it. You want the prefix to be a key you don't normally use. Now, why "Numpad5"? This acts as a prefix for AHK, so that AHK can distinguish it from my "h" on the main keyboard. In this case, "h DOWN" becomes "Numpad5 DOWN + h DOWN" and "h UP" becomes "h UP + Numpad5 UP" Swap the last "0" for "1" (in some cases "3" instead of "2"), and you get the corresponding UP press. Trigger=23,0,0 is the DOWN press on that keyboard.Ĭombo=4c,0,0|23,0,0 is the executed DOWN press (across all keyboards? Doesn't matter for my use case). ini file and make a seperate case for every, like this (this is an exerpt):ĭevice=HID\VID_0433&PID_0004&REV_0100&MI_00 When you record the keypresses, it only sets the hotkeys for. I remapped every key to output "Numpad5+". Be sure to download the current version of interceptor from the linked github page. This godsend interceptor script called "intercept" (/showthread.php?t=30829) recognizes the keyboard's device ID. This should work for any other keyboard, too. My secondary keypad/keyboard is a "Delux T9" without any drivers. So, for future reference and in case anybody has the same problem, here's my setup:
Remap keyboard output full#
But it offers the full functionality of AHK for multiple seperate driverless keyboards and keypads.
Remap keyboard output trial#
My solution is essentially very easy (now, after days of trial and error), albeit a bit time consuming. Over the weekend I tried many different setups, including HIDMacro and GlovePIE, but none fit my needs perfectly. Various people seem to have the same problem. I did not check if lexikos' solution works, but the formatting seems much more complex for every key. I only had to set "#MaxHotkeysPerInterval 200", because holding a key would quickly hit 71 for me. The keypresses and releases are recognized accurately and the formatting is simple enough to remap every key for multiple applications. Code: Select all #if (getKeyState("numpad5", "P"))