Operating system and version: Windows10.0 Build 19041 (release: 2004)
OBS Studio version: 26.0.2
OBS should be able to capture two windows with the exact same title.
If two windows with same title exist, they are both listed in the window selection, but switching to either of them will only capture the window that was most recently focused. Selecting one of the windows then focusing on the other window will work for a while in OBS, but malfunctions when switching the window to be selected in the Properties dialog (switches to the most recently focused one). Note that even discarding the changes to the properties will not revert it to the previous window being captured.


This applies to other windows as well. Windows I have tried are: Notepad, File Explorer (go to same folder, have a different sorting order), and Zoom (second instance by running as different user, both using dual monitors, the second monitor will have the same window title).
It does not matter whether Automatic, BitBlt, or WGC is chosen, nor whether you click OK to save the properties. Not even capture cursor.
Tried saving Notepad file to 'test.txt', in different folders, and opening them, still the same.
Confirmed on Windows.
This isn't a bug, this is a limitation of the operating system itself. In order to find a window, it uses the window class name and window title and tries to find the one that matches, therefore if you have two identical windows, it cannot differentiate between them because there's no other unique identifier. It's always been a problem and it'll always be a problem.
there's no other unique identifier
This isn't actually the case, though, is it? Each window has its own unique window handle that could be used to differentiate between multiple otherwise-identical windows (right?). Yes, that would no longer apply once the specific windows being captured are closed, but that still seems far preferable to 'can never capture a second window at all, ever, which is the current state of things.
There's a unique HWND and also a unique PID. So during a session, it should be possible to differentiate between identically named windows, at least.