public override void KeyPress(Keys Key, TimeSpan KeyPressTime) { SendKeyToWindow(Handle, Key, false, Recursive); if (!KeypressTime.IsEmpty()) { Thread.Sleep((int)KeypressTime.TotalMilliseconds); } SendKeyToWindow(Handle, Key, true, Recursive); }
public override void KeyPress(Keys Key, TimeSpan KeyPressTime) { SendKey(Key, false); if (!KeypressTime.IsEmpty()) { Thread.Sleep((int)KeypressTime.TotalMilliseconds); } SendKey(Key, true); }