请问如何判读键盘上的按键是否处于按下状态
如何用一个语句来判读如"X"键是否处于按下状态,VB中有判读按键电位的语句么(提供个C语言语句也可以)尝试编写连发时想到的,keypress,keydown,keyup只能模拟键盘操作;gelastkey也不能判断键盘状态 --------------------编程问答-------------------- GetKeyState --------------------编程问答--------------------
GetKeyState
If the high-order bit is 1, the key is down; otherwise, it is up.
If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled.
--------------------编程问答-------------------- 键盘钩子:http://bbs.csdn.net/topics/360078252
补充:VB , 基础类