iohook
iohook copied to clipboard
Feature request: getting the event source
Hey! First of all, thanks for this awesome package :)
In my use case, I'm trying to get data from barcode and card scanners. Those devices act as a keyboard (HID), but in order to separate between those devices and acutely keyboard, I need to get in the event's vendor Id and product Id.
Does any of you know how to make it work?
Thanks Asaf
Have the same problem with a generic rfid card reader :(
Has this feature been implemented yet?
Very interested in this functionality as well! Are they’re any plans to implement or is there a current way to tell which keyboard input a key press originated from.
@glococo @Djiit @glococo @asaf050 Did y’all find a workaround or another package?
This is not at all related to iohook and shouldn't be. There are other solutions to get an HID device vendor and product ID and you can do your logic based on that. Check out node-hid.
Hi @ash0x0 , With node-hid you can get a list of HID devices but you will not be able to determine which device send the keystrokes. I think this issue should remain open