using something suchas this could work for ya
Code:
using System.Diagnostics;
var pName = "League of Legends";
bool isRunning = false;
Console.Write("Waiting for " + pName + " to launch...");
while (!isRunning)
{
foreach (Process clsProcess in Process.GetProcesses())
{
if (clsProcess.ProcessName == "Chrome")
{
isRunning = true;
}
}
Thread.Sleep(1000);
}