Wir verändern den Status der NumLock Taste
[DllImport("user32")]
public static extern void keybd_event(int vk, byte bScan, int dwFlags, int dwExtraInfo);
const int VK_NUMLOCK = (int)Windows.Forms.Keys.NumLock;
const byte KEYEVENTF_KEYUP = 0x0002;
keybd_event(VK_NUMLOCK, 1, 0, 0);
keybd_event(VK_NUMLOCK, 0, KEYEVENTF_KEYUP, 0);
1 Kommentare zum Snippet