Hey, This issue was addressed before but not in this angle. I'm trying to control a Python application with C#. The application runs an unknown time and I need to hold the main C# application form until It "knows" when the Python application is done processing. I should mark that the Python Application has its own GUI which i'm trying to keep. So far, I've used:
ProcessStartInfo processStart= new System.Diagnostics.ProcessStartInfo(@app);
processStart.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
processStart.UseShellExecute = false;
processStart.RedirectStandardOutput = true;
processStart.CreateNoWindow = true;
Process myProcess = Process.Start(processStart);
Then I send a couple of "SendKey" methods including some TAB and ENTER. Furthermore, as you can probably infer from the code I'm trying to make the entire Python process hidden – I did succeed in open\close the Python application but didn't succeed in controlling it at all. Any suggestions?