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);
 }
Beispiel #2
0
 public override void KeyPress(Keys Key, TimeSpan KeyPressTime)
 {
     SendKey(Key, false);
     if (!KeypressTime.IsEmpty())
     {
         Thread.Sleep((int)KeypressTime.TotalMilliseconds);
     }
     SendKey(Key, true);
 }