How can I use EnumWindows to find windows with a specific caption/title?
Original Answer Use EnumWindows and enumerate through all the windows, using GetWindowText to get each window’s text, then filter it however you want. [DllImport(“user32.dll”, CharSet = CharSet.Unicode)] private static extern int GetWindowText(IntPtr hWnd, StringBuilder strText, int maxCount); [DllImport(“user32.dll”, CharSet = CharSet.Unicode)] private static extern int GetWindowTextLength(IntPtr hWnd); [DllImport(“user32.dll”)] private static extern bool EnumWindows(EnumWindowsProc enumProc, IntPtr … Read more