Beispiel #1
0
 public static void KeybdEvent(byte key, byte bScan, KeybdEventFlag flags, uint dwExtraInfo)
 {
     global::CJBasic.Helpers.INPUT pInputs = new global::CJBasic.Helpers.INPUT();
     pInputs.type       = 1;
     pInputs.ki.wVk     = key;
     pInputs.ki.wScan   = MapVirtualKey(key, 0);
     pInputs.ki.dwFlags = (int)flags;
     SendInput(1, ref pInputs, Marshal.SizeOf(pInputs));
 }
Beispiel #2
0
 private static extern uint SendInput(uint nInputs, ref global::CJBasic.Helpers.INPUT pInputs, int cbSize);