to: yifengling0 晕,怪不得我用不了啊,我一直以为是VK_ALT,sigh,windows怎么定义得这么不爽,让我好找
/* * VK_L* & VK_R* - left and right Alt, Ctrl and Shift virtual keys. * Used only as parameters to GetAsyncKeyState() and GetKeyState(). 有的,看WINUSER.H的432行 * No other API or message will distinguish left and right keys in this way. */ #define VK_LSHIFT 0xA0 #define VK_RSHIFT 0xA1 #define VK_LCONTROL 0xA2 #define VK_RCONTROL 0xA3 #define VK_LMENU 0xA4 #define VK_RMENU 0xA5
-----------------------------可能是按Alt后,焦点到了菜单栏上了
晕,怪不得我用不了啊,我一直以为是VK_ALT,sigh,windows怎么定义得这么不爽,让我好找
* VK_L* & VK_R* - left and right Alt, Ctrl and Shift virtual keys.
* Used only as parameters to GetAsyncKeyState() and GetKeyState().
有的,看WINUSER.H的432行 * No other API or message will distinguish left and right keys in this way.
*/
#define VK_LSHIFT 0xA0
#define VK_RSHIFT 0xA1
#define VK_LCONTROL 0xA2
#define VK_RCONTROL 0xA3
#define VK_LMENU 0xA4
#define VK_RMENU 0xA5
我在pretranslate里面捕获的,应该可以了才对啊
指的是windows那个键VK_ALT在Java里面有
{
说明按住了ALT键
}