Windows' Special keys USB packet

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
azcypro1
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

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.

   

 

   

Thanks,

   

 

   

Bill Keeler

0 Likes
2 Replies
Anonymous
Not applicable

The HID usage tables do work in windows!

0 Likes
azcypro1
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

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.

0 Likes