I’ve been using the following code to run a Terminal command. It opens the terminal but no command is entered. What is the correct way to launch the terminal and send a command to it? The command I want to send is cliclick c:100,100; The command line application is named cliclick, and clicks a mouse.
var process = new System.Diagnostics.Process();
process.StartInfo.FileName = "cliclick";
process.StartInfo.Arguments = "c:"+x + "," + y;
Debug.Log("c:"+x + "," + y);
//process.StartInfo.CreateNoWindow=true;
process.StartInfo.UseShellExecute=false;
process.Start("/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal");
Debug.Log("Key it PROCESSSTART");