private void SendPlayNoteCommand() { for (int i = 0; i < equipKeys.Length; i++) { SendInput.SendDirectXKey(equipKeys[i], false); SendInput.SendDirectXKey(equipKeys[i], true); } }
private void SendNoteString(SimpleMidiNote note) { var noteId = GetNoteId(note); foreach (var character in noteId.ToString()) { var pitchKey = Enum.Parse(typeof(DirectXKey), $"DIK_NUMPAD{character}"); SendInput.SendDirectXKey((DirectXKey)pitchKey, false); } }
private void SubmitConsoleCommand() { SendInput.SendDirectXKey(DirectXKey.DIK_NUMPADENTER, true); }
private void OpenConsole() { SendInput.SendDirectXKey(DirectXKey.DIK_F5, false); SendInput.SendDirectXKey(DirectXKey.DIK_F5, true); }