如何检测功能键状态?
如何检测诸如 NumLock CapsLock ScrollLock 等键的当前状态。非当前按键。[ 本帖最后由 caney 于 2008-5-26 08:19 编辑 ]
Global Const $VK_NUMLOCK = 0x90
Global Const $VK_SCROLL = 0x91
Global Const $VK_CAPITAL = 0x14
MsgBox(0,"test",_GetKeyState($VK_NUMLOCK))
Func _GetKeyState($VK_Code)
Local $ret = DllCall("user32.dll", "long", "GetKeyState", "long", $VK_Code)
Return $ret
EndFunc 多谢,多谢 记一下,忘了查查备用
页:
[1]