hkorchek Posted November 19, 2008 Posted November 19, 2008 Using the Window Info tool for some information I have the two following line in my script: WinActivate("CareChek", "") WinActivate("[CLASS:WindowsForms10.window.8.a; INSTANCE:8]", "") The first bringing up the main program window and the second I need to pull up the child window in that application. I can not for the life of me figure out how to reference it. ANything else I should be looking at? Thanks all,
oMBRa Posted November 19, 2008 Posted November 19, 2008 try _WinAPI_GetAncestor($handle, 1) to get parent window's handle
FireFox Posted November 19, 2008 Posted November 19, 2008 try _WinAPI_GetAncestor($handle, 1) to get parent window's handleLook at AnyGui.au3 for add child window to an existing window
hkorchek Posted November 19, 2008 Author Posted November 19, 2008 This is a 3rd party app I am working with and the windows are already open. I just need to put the focus on that child window.
oMBRa Posted November 19, 2008 Posted November 19, 2008 @hkorcheck using _WinAPI_GetAncestor($handle, 1) u can get the handle of the parent window, replace $handle witn the handle of the main window, the use WinActivate($handle of the parent window) @firefox what u mean?
hkorchek Posted November 19, 2008 Author Posted November 19, 2008 @hkorcheck using _WinAPI_GetAncestor($handle, 1) u can get the handle of the parent window, replace $handle witn the handle of the main window, the use WinActivate($handle of the parent window)@firefox what u mean?Sorry Im still a little new to Autoit. Am I returning the same of the child window to something?
FireFox Posted November 19, 2008 Posted November 19, 2008 @firefox what u mean?AnyGui.au3 is an udf on autoit exscript forum with you can add child to a window and add controls on it
FireFox Posted November 19, 2008 Posted November 19, 2008 (edited) what's the point of this in this post?that's written in the first post that he want to pull up child window in application Edited November 19, 2008 by FireFox
oMBRa Posted November 19, 2008 Posted November 19, 2008 the child window already exist, he just want give it focus @hkorchek I think _WinAPI_GetAncestor($handle, 1) is wrong, sorry
hkorchek Posted November 19, 2008 Author Posted November 19, 2008 I uploaded a picture that might help. You can see the child window called "User Management" and I need to bring that window to focus.
oMBRa Posted November 19, 2008 Posted November 19, 2008 if u know the title what's the problem: WinActivate( "User Management" , "")
hkorchek Posted November 20, 2008 Author Posted November 20, 2008 if u know the title what's the problem: WinActivate( "User Management" , "") That was the first thing I tried. I am assuming that it will only work for windows that show in the task bar and not child windows like this one.
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