song940 / input-event

:musical_keyboard: Read and parse input device(like mouse, keyboard, joystick and IR-Remote)'s event data.

Home Page:https://npmjs.org/input-event

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows Usage Instruction

Levertion opened this issue · comments

How do I get the path needed for my devices in Windows? I think it might be related to HID\VID_046D&PID_C31C&MI_00\7&1585C721&0&0000
as explained here, but I'm not sure how to get it to connect. I tried:

const InputEvent = require("input-event");
var input = new InputEvent("HID\\VID_046D&PID_C31C&MI_00\\7&1585C721&0&0000");

But this gives an error:

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'c:\Users\Levertion\Documents\Other Code\ahk_replace_test\HID\VID_046D&PID_C31C&MI_00\7&1585C721&0&0000'
    at Error (native)

By placing breakpoints I can see that the index.js function runs successfully, however, I cannot work out where the exception actually occurs.
I think that this should be usable in windows based on your screenshot, which shows it working on what looks like Windows 7 - if it doesn't work in Windows I'm sorry for wasting your time
Edit is due to accidental use of keyboard shortcut to send issue before it was complete

commented

only linux, does not supports windows, never.

Maybe an explanation of this literally anywhere would be good, and not having an image in the readme which suggests fairly explicitly that it works on windows. I suspected that it didn't support windows, but this still needs an explanation.