Example #1
0
 /// <summary>
 /// Alt + Key.
 /// </summary>
 /// <param name="obj">IUIObject.</param>
 /// <param name="key">key.</param>
 public static void SendAltAndKey(this IUIObject obj, Keys key)
 => UIObjectKeybordEmulator.SendAltAnd(obj, key);
Example #2
0
 /// <summary>
 /// Send the key with modify.
 /// </summary>
 /// <param name="obj">IUIObject.</param>
 /// <param name="isControl">Is the Ctrl key pressed.</param>
 /// <param name="isShift">Is the Shift key pressed.</param>
 /// <param name="isAlt">Is the Alt key pressed.</param>
 /// <param name="key">key.</param>
 public static void SendModifyAndKey(this IUIObject obj, bool isControl, bool isShift, bool isAlt, Keys key)
 => UIObjectKeybordEmulator.SendModifyAnd(obj, isControl, isShift, isAlt, key);
Example #3
0
 /// <summary>
 /// Send the keys.
 /// </summary>
 /// <param name="obj">IUIObject.</param>
 /// <param name="keys">Keys for sending. It is the same as the rule of System.Windows.Forms.SendKeys.</param>
 public static void SendKeys(this IUIObject obj, string keys)
 => UIObjectKeybordEmulator.Send(obj, keys);