Sign in to follow this  
Followers 0
Ferrari312

Working with MDI windows

3 posts in this topic

I am currently working on automating testing an MDI application, and I am having trouble getting to grips with the child windows (as opposed to the application frame itself, and dialog boxes, which I can work with fine).

I'm relatively new to AutoIT having only been learning and working with it for a couple of weeks. I found that functions like WinActivate, WinWaitActive and ControlGetHandle don't work if you are wanting to bring a child window into focus. I tried googling and searching for a solution, the only one that I found to try was to try:

AutoItSetOption("WinSearchChildren", 1)

but this had no effect.

Is anyone able to give me any tips or point me in the right direction (any tutorials on this subject? haven't been able to find any so far) then it would be most appreciated :D

Thanks :D

Share this post


Link to post
Share on other sites



I had the exactly same problem and I finally figured out that ControlFocus can do the job. Try it.

Bo Chen Lin

Share this post


Link to post
Share on other sites

I am currently working on automating testing an MDI application, and I am having trouble getting to grips with the child windows (as opposed to the application frame itself, and dialog boxes, which I can work with fine).

I'm relatively new to AutoIT having only been learning and working with it for a couple of weeks. I found that functions like WinActivate, WinWaitActive and ControlGetHandle don't work if you are wanting to bring a child window into focus. I tried googling and searching for a solution, the only one that I found to try was to try:

AutoItSetOption("WinSearchChildren", 1)

but this had no effect.

Is anyone able to give me any tips or point me in the right direction (any tutorials on this subject? haven't been able to find any so far) then it would be most appreciated :)

Thanks ;)

Can you give a small example of a case where what you expect to happen dopesn't?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  
Followers 0