So I know this question has been asked many times, but I cannot seem to find a proper answer.
Does anyone know how to read from a HID device from any C#/.NET (.NET 6) application?
I've tried several packages/projects, such as:
- https://www.codeproject.com/Articles/1244702/How-to-Communicate-with-its-USB-Devices-using-HID
- https://www.codeproject.com/Articles/17123/Using-Raw-Input-from-C-to-handle-multiple-keyboard
These projects are focussed on fetching data from all keyboards and checking where the data came from.
Now what I'm really looking for is a library/way to receive data from these devices without needing a windows forms handle or even focus to the application. It should work in such a way that I can simply get the data from the device without requiring any user interaction or focus on the application, so that it would work from a .NET console application.
One really interesting library I found is the HID.NET library (https://github.com/MelbourneDeveloper/Device.Net), one of the issues with this library is that I get the same issue as this guy (https://github.com/MelbourneDeveloper/Device.Net/issues/88). So it states that access is denied to open the device for reading.
This means I cannot use this library either.
Therefore I felt like maybe someone on here could help me further. I would like any direction in which I could go to get further with this issue.
Many thanks in advance.