コード例 #1
0
 public static void PressKeys(IntPtr hWnd, params Key[] keys)
 {
     foreach (var key in keys)
     {
         UIAutomationHelper.PressKey(hWnd, key);
     }
 }
コード例 #2
0
 /// <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);
     }
 }