Eric

Eric

  • NA
  • 13
  • 0

How can I get the exact number of keys of a keyboard?

Jul 19 2007 4:10 PM

Eventually I hope I can do that for PDA and chording keyboard, but for now I just wish I can handle the computer keyboard.

I am trying to use the Win32_Keyboard WMI class to get the number of keys; however, it only has "numberoffunctionkeys", which is 12 in genearl. Its name says it is an "extended 101- or 102- keyboard", but the real number is 104 keys. I am not interested in the realationship between these numbers; I just want to get 104 as the return value. So how can I do it?

Even by manually checking windows control panel, I cannot get the information of how many keys exactly on the keyboard, which is 104. I dont know why.

So please give me your suggestions, or solutions, code/project will be perfect! ^_^

Thanks,


Answers (2)