Ejemplo n.º 1
0
        private static INPUT ConstructINPUT(byte vk, ushort scan, int flags, IntPtr dwExtraInfo)
        {
            INPUT input = new INPUT();

            input.type = InputType.KEYBOARD;
            KEYBDINPUT kbInput = new KEYBDINPUT();

            kbInput.wVk         = vk;
            kbInput.wScan       = scan;
            kbInput.dwFlags     = flags;
            kbInput.time        = 0;
            kbInput.dwExtraInfo = dwExtraInfo;
            input.ki            = kbInput;
            return(input);
        }
Ejemplo n.º 2
0
 private static INPUT ConstructINPUT(byte vk, ushort scan, int flags, IntPtr dwExtraInfo)
 {
     INPUT input = new INPUT();
     input.type = InputType.KEYBOARD;
     KEYBDINPUT kbInput = new KEYBDINPUT();
     kbInput.wVk = vk;
     kbInput.wScan = scan;
     kbInput.dwFlags = flags;
     kbInput.time = 0;
     kbInput.dwExtraInfo = dwExtraInfo;
     input.ki = kbInput;
     return input;
 }