keyboard_multi_press.bat 862 B

123456789101112131415161718192021222324252627282930313233
  1. @echo off
  2. echo "Testing 6 key presses"
  3. .\send.exe COM3 115200 0xFF
  4. timeout /t 1 /nobreak >nul
  5. echo "Pressing A"
  6. .\send.exe COM3 115200 0x02 0x01 0x41
  7. echo "Pressing B"
  8. .\send.exe COM3 115200 0x02 0x01 0x42
  9. echo "Pressing C"
  10. .\send.exe COM3 115200 0x02 0x01 0x43
  11. echo "Pressing D"
  12. .\send.exe COM3 115200 0x02 0x01 0x44
  13. echo "Pressing E"
  14. .\send.exe COM3 115200 0x02 0x01 0x45
  15. echo "Pressing F"
  16. .\send.exe COM3 115200 0x02 0x01 0x46
  17. timeout /t 1 /nobreak >nul
  18. echo "Releasing A"
  19. .\send.exe COM3 115200 0x02 0x02 0x41
  20. echo "Releasing B"
  21. .\send.exe COM3 115200 0x02 0x02 0x42
  22. echo "Releasing C"
  23. .\send.exe COM3 115200 0x02 0x02 0x43
  24. echo "Releasing D"
  25. .\send.exe COM3 115200 0x02 0x02 0x44
  26. echo "Releasing E"
  27. .\send.exe COM3 115200 0x02 0x02 0x45
  28. echo "Releasing F"
  29. .\send.exe COM3 115200 0x02 0x02 0x46
  30. timeout /t 1 /nobreak >nul