예제 #1
0
 private void SendPlayNoteCommand()
 {
     for (int i = 0; i < equipKeys.Length; i++)
     {
         SendInput.SendDirectXKey(equipKeys[i], false);
         SendInput.SendDirectXKey(equipKeys[i], true);
     }
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
 private void SubmitConsoleCommand()
 {
     SendInput.SendDirectXKey(DirectXKey.DIK_NUMPADENTER, true);
 }
예제 #4
0
 private void OpenConsole()
 {
     SendInput.SendDirectXKey(DirectXKey.DIK_F5, false);
     SendInput.SendDirectXKey(DirectXKey.DIK_F5, true);
 }