Jump to content

Detecting child window

Recommended Posts

Hello guys,

I am new to Autoit and also not so old in programming. So please pardon my inadequacy. I am trying to automate a third party windows application that is written in C# and requires .net to run and I am using Python's Autoit module to do it. The problem I am facing is, when clicking in a control a child window appears with some options and normally you can not select the parent window by clicking when the child window is open. you have to close the child window to access the parent window. But, using 'win_wait' or 'win_activate' I am unable to activate the child window. 'win_active' returns the title of parent window and 'win_activate_by_handle' is also not working because i think it is unable to recognize this child window. If you use win_wait the script just keeps waiting or running. 

So is there anyway solve this problem?

Thanks in advance.


Link to post
Share on other sites

Hello. What kind of child windows is? Does it has a title?




Link to post
Share on other sites

Welcome @Adnan, look for the AutoIt Window Info tool on your PC.

Use it to get info from your target Window.  That will give you a whole lot of info, including Title, Class and Handle.  That info can then be used to do manipulate the Window.


Why is the snake in the sky?

Link to post
Share on other sites

The child window has a title. I am attaching a screenshot of parent and child window if that is any help. I have tried using Autoit Window Info tool but it is not particularly useful for this software. It shows title of the window but can not detect controls.


parent and child window.jpg

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...