KEYEVENTF_SILENT is a constant used in calls like this one:
keybd_event(VK_OFF, 0, KEYEVENTF_SILENT, 0);
keybd_event(VK_OFF, 0, KEYEVENTF_SILENT | KEYEVENTF_KEYUP, 0);
But since I am using .net I don't know what the actual value of KEYEVENTF_SILENT is. I can't call i开发者_JAVA技巧t with out knowing.
Any ideas?
Ah. Found it right after posting.
public const byte VK_OFF = 0xDF;
public const byte KEYEVENTF_KEYUP = 0x0002;
public const byte KEYEVENTF_SILENT = 0x0004;
To solve these issues, you should look at WinUser.h.
It comes with Visual C++ and with the Windows SDK (which is free), and can be found in the Headers folder.
精彩评论