private static bool FilterWindow(IntPtr window, List <Process> visibleProcesses, out string startingFile, out string name)
        {
            Console.WriteLine("________");
            Console.WriteLine($"making handle:{window}");
            ProcessManager.GetStartingFileAndName(window, visibleProcesses, out startingFile, out name);

            if (name != null || startingFile != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        public static List <IntPtr> GetAllWindows(string appName)
        {
            List <IntPtr> visibleWindows = new List <IntPtr>();

            SetHandles();
            List <Process> visibleProcesses = ProcessManager.GetVisibleProcesses();

            foreach (IntPtr window in VisibleWindows)
            {
                ProcessManager.GetStartingFileAndName(window, visibleProcesses, out string path, out string name);
                if (appName == name)
                {
                    visibleWindows.Add(window);
                }
            }
            return(visibleWindows);
        }