How to get the process names of applications in the taskbar using C #?
I want to get a list of process names for applications that are in the taskbar. How do I get it? Is there a way to filter criteria from process [] ???
+2
Anuya
source
to share
1 answer
I think you can use MainWindowTitle
Process[] processes = Process.GetProcesses();
foreach (var item in processes)
{
if(item.MainWindowTitle.Length > 0)
Console.WriteLine(item.MainWindowTitle);
}
+4
Ahmed said
source
to share