Bring One of three windows to front!

You can talk about anything related to LB Booster here, not covered in another category
sarmednafi
Posts: 36
Joined: Fri Apr 06, 2018 6:27 am

Bring One of three windows to front!

Post by sarmednafi »

Dear Group,

I have three opened windows on desk top, the one I want behind the others.
Is it possible via my LB code to bring the window which I want on Top?
The windows dose not created by my code it is for external programs.

We can describe as:
How to bring external application window on top?

I really appreciate your help.

Regards
Sarmed
guest
Site Admin
Posts: 192
Joined: Tue Apr 03, 2018 1:34 pm

Re: Bring One of three windows to front!

Post by guest »

sarmednafi wrote: Sun Apr 30, 2023 11:37 am How to bring external application window on top?
In 'modern' versions of Windows (since Windows 2000!) Microsoft has restricted this capability, because it could be abused. Specifically SetForegroundWindow() and BringWindowToTop() only work in certain conditions.

If those conditions are met I think you should be able to do what you want, but of course a pre-requisite is to know the window handle of the window you want to control.

So your first step must be to find that handle. You should be able to do that if you know the Window title (assuming it is unique) or you know the window class (if it's the only window with that class); if not it's more difficult.
sarmednafi
Posts: 36
Joined: Fri Apr 06, 2018 6:27 am

Re: Bring One of three windows to front!

Post by sarmednafi »

Richard,

Thank you Sir, thank you very much.
A Great information you present.

All the Best
Sarmed