Select an opened window

I’m creating a a macro and part of this macro is to press some buttons in the new generated window (not a tab) the issue is the that this link is different every time, so can someone help me how to select the window if it’s title and link is different (and it’s not a tab , and i can’t show it as a tab)

Can you add a screenshot, so we can see how it looks?