Controlling Python application with C# -
hey, issue addressed before not in angle. i'm trying control python application c#. application runs unknown time , need hold main c# application form until "knows" when python application done processing. should mark python application has own gui i'm trying keep. 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 send couple of "sendkey" methods including tab , enter. furthermore, can infer code i'm trying make entire python process hidden – did succeed in open\close python application didn't succeed in controlling @ all. suggestions?
redirect stdin , push characters in way (rather sendkeys)?
Comments
Post a Comment