i want to replace the tab name on my chrome. i have managed to get it detect the tab using this code
public void FetchProcess()
{
Process[] processes = Process.GetProcessesByName("chrome");
if (processes.Length > 0)
{
foreach (Process item in processes)
{
int milliseconds = 100;
Thread.Sleep(milliseconds);
if (item.MainWindowTitle.Contains("YouTube - Google Chrome"))
{
MessageBox.Show("Yayy");
}
}
}
}
But cannot get it to rename the tab. I have tried replacing it but no luck. Any suggestions?