RooperGee Posted January 3, 2008 Posted January 3, 2008 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
Nahuel Posted January 3, 2008 Posted January 3, 2008 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.
monoceres Posted January 3, 2008 Posted January 3, 2008 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!
RooperGee Posted January 3, 2008 Author Posted January 3, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now