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,
Loading
Posted Jul 21, 2007, 12:54 PM
Maybe you could try using assembly to figure out how many keys are on the board. Or maybe C++ could help you out. Just tossing a few ideas out there, C# is a .NET language so whatever .NET supports it supports for the most part. But C++ and assembly can work just about anywhere and get down into the drivers and baseline functions of a system.
Mike GoldPosted Jul 20, 2007, 6:48 PM