If in function OpenHID() add optional parameter "SerialNumber"
Code: Select all
x=OpenHID(0, $1234, $1, 2)
If pass a pointer to a variable, there is no crash, but the device is not found.[ERROR] Invalid memory access. (read error at address 2)
I also noticed that the HID library is missing a function HidID() (similar FileID(), WindowID() etc.).