开发者

What does KEYEVENTF_SILENT equate to

开发者 https://www.devze.com 2023-01-01 13:34 出处:网络
KEYEVENTF_SILENT is a constant used in calls like this one: keybd_event(VK_OFF, 0, KEYEVENTF_SILENT, 0);

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消