Task: automatic login to Steam account

How to interact with the process, if by the name it does not find a ClassName changes every time it starts?

+ also the handle is given only to the window, all internal elements do not receive it (as websites)

I launch through Process. Start ();

I do not ask for ready-made code, at least give me the direction to dig.

Closed due to the fact that the essence of the question is incomprehensible to the participants by mega , aleksandr barakin , user207618, Kromster , HamSter Jul 4 ’17 at 9:54 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    If you run it through Process.Start() - a non-static version of the method without parameters - then the process object will represent your process.

     var process = new Process(); process.StartInfo.UseShellExecute = false; process.StartInfo.FileName = "C:\\HelloWorld.exe"; // ... process.Start(); // и дальше используете process.MainWindowHandle и process.Id как вам угодно 
    • Thanks, at last, but I just started teaching, and on MSDN without examples, I couldn’t understand what methods the process class has - Vyacheslav