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