Jump to content
Sign in to follow this  
RooperGee

Find handle of most recent window

Recommended Posts

RooperGee

Is there a way to find out the window handle of the most recent window that has opened? I have a program that launches a new window that I need to take control of, but the new window isn't active when it launches and it has the same title as the program that launched it! Any ideas? Thanks!


Progress lies not in enhancing what is, but in advancing towards what will be. - Kahlil Gibran

Share this post


Link to post
Share on other sites
Nahuel

I don't know if it's possible that way, but I guess you could get the handle of the main window. Then, having this handle, wait for another window with the same title but different handle.

Share this post


Link to post
Share on other sites
monoceres

Or you can change the main windows title, just adding a trailing space to the title.


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
weaponx

See the solution here:

#444410

Share this post


Link to post
Share on other sites
RooperGee

Great suggestions everyone! Thanks - I just needed some ideas.


Progress lies not in enhancing what is, but in advancing towards what will be. - Kahlil Gibran

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×