iohook icon indicating copy to clipboard operation
iohook copied to clipboard

Feature request: getting the event source

Open asaf050 opened this issue 6 years ago • 6 comments

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

asaf050 avatar Oct 13 '18 15:10 asaf050

Have the same problem with a generic rfid card reader :(

glococo avatar Apr 17 '19 10:04 glococo

Has this feature been implemented yet?

lennyesquivel-hexaware avatar Jan 21 '20 18:01 lennyesquivel-hexaware

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.

cworsley4 avatar Jun 28 '20 11:06 cworsley4

@glococo @Djiit @glococo @asaf050 Did y’all find a workaround or another package?

cworsley4 avatar Jun 28 '20 11:06 cworsley4

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.

ash0x0 avatar Jun 11 '21 19:06 ash0x0

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

asaf050 avatar Jul 18 '21 19:07 asaf050