Пример #1
0
 protected void SendKey(int key, float duration = DELAY_BETWEEN_KEYS)
 {
     if (!IsActive)
     {
         return;
     }
     ActionManager.SendAction(() => { KeyUtils.Send(key); }, duration, null);
 }
Пример #2
0
 protected void SendInstantKey(int key, Action callback = null)
 {
     if (!IsActive)
     {
         return;
     }
     ActionManager.SendInstantAction(() => { KeyUtils.Send(key); }, callback);
 }
Пример #3
0
 protected void SendKey(int key, float duration, Action callback)
 {
     if (!IsActive)
     {
         return;
     }
     ActionManager.SendAction(() => { KeyUtils.Send(key); }, duration, callback);
 }
Пример #4
0
 protected void SendTab(Action callback)
 {
     if (!IsActive)
     {
         return;
     }
     ActionManager.SendAction(() =>
     {
         if (!IsActive)
         {
             return;
         }
         KeyUtils.Send(Keyboard.ScanCodeShort.TAB);
     }, Constants.TAB_DELAY, callback);
 }