[DllImport("user32.dll")] static extern uint SendInput(uint nInputs, INPUT[] pInputs, int cbSize); private void SendKey(char keyChar)
private bool shiftPressed = false; private void Modifier_Click(object sender, RoutedEventArgs e) download keyboard virtual windows 10
string key = ((Button)sender).Content.ToString(); SendKeys.SendWait(key); // Sends to active window [DllImport("user32