I have no idea how to control a different program from without yours, but, I need to do it. Either can you give me the source to an example, or can you code a bot which reads a list of serials off a .txt, then, injects into steam and tries them ALL? Preferably without keyboard presses, considering that'll render my PC useless till it's done.
Well... I tried to throw one together with keyboard inputs and it froze my whole PC... >.>
Well... I tried to throw one together with keyboard inputs and it froze my whole PC... >.>
Code
private void button1_Click(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(5000);
System.IO.TextReader t = new System.IO.StreamReader("C:\\users\\nicholas\\desktop\\keys.txt");
string currentLine;
while((currentLine = t.ReadLine()) != null) {
SendKeys.SendWait("{tab}{tab}{tab}{tab}+a{del}");
System.Threading.Thread.Sleep(100);
SendKeys.SendWait(currentLine);
System.Threading.Thread.Sleep(100);
SendKeys.SendWait("{enter}");
System.Threading.Thread.Sleep(5000);
SendKeys.SendWait("{enter}");
System.Threading.Thread.Sleep(100);
}
}