I have a gaming keyboard (Logitech G15) that uses its own software for additional features. Now I am writing a startup batch script that starts that software if the keyboard is connected. It of course can start automatically, but I disabled it as I don't need it starting when I'm not using the keyboard.
I know how to check if the output from
devcon hwids * contains some exact text. So I can find the device. But my question is, is there any information in the output that is persistent between reboots and different keyboards.
I saved the output of DevCon to two files, with and without the keyboard connected. Then I compared them with
fc. This is one of the differences:
HID\VID_046D&PID_C221&MI_00\8&29AF1682&0&0000 Name: HID Keyboard Device Hardware ID's: HID\VID_046D&PID_C221&REV_0170&MI_00 HID\VID_046D&PID_C221&MI_00 HID_DEVICE_SYSTEM_KEYBOARD HID_DEVICE_UP:0001_U:0006 HID_DEVICE
There are also about ten more differences, where the devices are "HID compliant devices", "USB input devices" and also some unrelated devices like the integrated USB hub.
Now what I'm asking is that is there any info that identifies another Logitech G15, or at least always identifies mine?