Would someone tell me where to find the USB keyboard codes to send to make Windows sleep, Volume up/down, play/pause, etc.? The HID Usage Tables have those- but they do not work in Windows. I've looked elsewhere but can't find codes that work. I'd like a whole list of key codes (in USB data) if I can get one.
Windows scan codes aren't the answer; they are the codes used internally by Windows.
I learned that the keyboard device doesn't do it. It has to be reported as a consumer device with different codes than are in the HID usage tables in order to perform the functions given.