I'm looking for a solution to the following problem. I have 2 monitors, I want to find the second window on a certain monitor.
The reason I need the second window is because on that monitor I have a running application which is always on top and I don't need that window so the one after that.
Hiding and showing the topmost is not an option because this results in flickering.
Any help will be much appreciated.
Edit
Since it wasn't clear enough I will try to explain it a bit better.
I have 2 monitors, M1 and M2, where M1 is my main monitor. There is an application running that will always be topmost, this is an application I made myself.
I want to find the topmost window on M1 but ignore my own application. So the second one in line.
For more clarity, Youre making an application in delphi, when youre debugging your form will pop up but what I am looking for is that the HWND of RAD Studio is returned instead of your own form.
Hope its better to understand now.
P.s. David got what I meant with his last comment.