Windows硬件系统函数 - GetAsyncKeyState
来源:互联网 发布:股票交易大数据 编辑:程序博客网 时间:2024/04/30 10:47
VB声明Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer说明判断函数调用时指定虚拟键的状态返回值Long,自对GetAsyncKeyState函数的上一次调用以来,如键已被按过,则位0设为1;否则设为0。如键目前处于按下状态,则位15设为1;如抬起,则为0。微软的win32手册指出:倘若输入焦点从属于与调用函数的输入线程不同的另一个输入线程,则返回值为0(例如,一旦另一个程序拥有焦点,则它应返回零)。证据显示,函数实际是在整个系统的范围内工作的参数表参数类型及说明vKeyLong,欲测试的虚拟键的键码注解
如指定了VK_LBUTTON 或 VK_RBUTTON,按钮的状态就会根据实际的按钮报告——无论是否曾用SwapMouseButton函数对鼠标的位置进行了交换。win32提供了额外的一些虚拟键码,比如VK_LSHIFT 和 VK_RSHIFT,以便在两个完全一样的键中区分出左右(也包括Ctrl 和 Alt)
- Windows硬件系统函数 - GetAsyncKeyState
- Windows硬件系统函数 - ExitWindowsEx
- Windows硬件系统函数 - GetComputerName
- Windows硬件系统函数 - GetCursorPos
- Windows硬件系统函数 - GetDoubleClickTime
- Windows硬件系统函数 - GetSysColor
- Windows硬件系统函数 - GetTickCount
- Windows硬件系统函数 - GetUserName
- Windows硬件系统函数 - mouse_event
- Windows硬件系统函数 - SetComputerName
- Windows硬件系统函数 - SetCursorPos
- Windows硬件系统函数 - SetDoubleClickTime
- Windows硬件系统函数 - ShowCursor
- GetAsyncKeyState函数
- Windows硬件系统函数 - ClipCursor, ClipCursorBynum
- Windows GetAsyncKeyState(vk_code)
- 硬件与系统函数
- 硬件与系统函数
- 一位软件工程师的6年总结
- Windows硬件系统函数 - ClipCursor, ClipCursorBynum
- 2-3树
- Windows硬件系统函数 - ExitWindowsEx
- Matlab接口的学习
- Windows硬件系统函数 - GetAsyncKeyState
- Windows硬件系统函数 - GetComputerName
- 国产手机
- Windows硬件系统函数 - GetCursorPos
- Windows硬件系统函数 - GetDoubleClickTime
- Windows硬件系统函数 - GetSysColor
- print 'welcome to masm!' in the center of the screen.
- Windows硬件系统函数 - GetTickCount
- 【转帖】C# 对txt操作