public static void PressKeys(IntPtr hWnd, params Key[] keys) { foreach (var key in keys) { UIAutomationHelper.PressKey(hWnd, key); } }
/// <summary> /// Simulates pressing several keys /// </summary> /// <param name="hWindow"></param> /// <param name="keys"></param> public static void PressKeys(IntPtr hWindow, IEnumerable <System.Windows.Input.Key> keys) { foreach (var key in keys) { UIAutomationHelper.PressKey(hWindow, key); } }