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