private static List <SendInputWrapper.INPUT> AddKeybdInput( List <SendInputWrapper.INPUT> inputs, byte vk, SendInputWrapper.KEYEVENTF dwFlags) { if (null == inputs) { inputs = new List <SendInputWrapper.INPUT>(); } inputs.Add(MakeKeybdInput(vk, dwFlags)); return(inputs); }
private static SendInputWrapper.INPUT MakeKeybdInput(byte vk, SendInputWrapper.KEYEVENTF dwFlags) { return(new SendInputWrapper.INPUT { type = SendInputWrapper.INPUT_KEYBOARD, u = new SendInputWrapper.InputUnion { ki = new SendInputWrapper.KEYBDINPUT { wVk = vk, wScan = 0, dwFlags = dwFlags, } } }); }