pls. add an unique string to the title of the picture viewer window, e. g. "Directory Opus Picture Viewer" or "DO Picture Viewer". I need that string for automation, so that this window can be distinguished from the main Directory Opus window.
Can't you match on the window class instead of (just) the window title? Most automation software can do that and it is more more flexible and more reliable than assuming the titles will have special strings (since the window classes are almost always special strings themselves).