[Solved] How to send command to program which is running lazarus / 21-General ---------------------------------------------------------------------- nikel · 2025-08-25 20:52 Hello, I'm trying to send some commands to Stockfish (chess engine) while it's running. For example I want to send "position startpos moves e2e4". I attached a screenshot. ---------------------------------------------------------------------- Roland57 · 2025-08-25 20:56 Hello. See this demo. ---------------------------------------------------------------------- nikel · 2025-08-25 21:46 Roland57, thank you for your reply. I tried the project you stated. It only gives me output of first run. I can't send commands. ---------------------------------------------------------------------- Roland57 · 2025-08-26 05:17 You are welcome. You have to add a line ending, wether in the input string editor, or in the code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure T MultipleProcessDemoForm.SendInput(Process:TProcess;InputMemo:TMemo);va r  InputStrings: string;begin  if Process.Running then begin    InputStrings := InputMemo.Lines.Text + LineEnding; // <--- Otherwise the engine cannot read the command.