plastovicka / HotkeyP

35 stars 7 forks source link

Use with multiple keyboards #3

Open Chaos-Racer opened 1 month ago

Chaos-Racer commented 1 month ago

Hello, I would like to use HotkeyP with several keyboards, but I would like to assign certain hotkeys to a specific keyboard. Example: The main keyboard is used without hotkeys and a 2nd 1-hand keyboard (gaming keyboard) is assigned the corresponding macros. Currently, HotkeyP cannot distinguish between different keyboards, so a created hotkey would be executed on both keyboards.

There is a software called HIDmacros (also available here on Github - https://github.com/me2d13/hidmacros) for which development has been discontinued. This program can distinguish between different keyboards and thus one keyboard can be addressed specifically, while the other remains unaffected.

Is it possible to integrate this functionality into HotkeyP so that different macros can be programmed for different keyboards?

Can we expect an update in this direction?

Many thanks for your help.

plastovicka commented 1 month ago

That HIDmacros project is written in Pascal. So it's not easy to integrate this functionality into HotkeyP which is written in C++. But at least I know how to do it. I need to use functions RegisterRawInputDevices, GetRawInputDeviceInfo, GetRawInputData and PeekMessage. I usually release a new version of HotkeyP once a year. But there are also many requests and issues from other users.