Ferrari312 Posted June 2, 2009 Share Posted June 2, 2009 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 Link to comment Share on other sites More sharing options...
BobLin Posted November 5, 2009 Share Posted November 5, 2009 I had the exactly same problem and I finally figured out that ControlFocus can do the job. Try it. Bo Chen Lin Link to comment Share on other sites More sharing options...
martin Posted November 5, 2009 Share Posted November 5, 2009 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. Link to comment Share on other sites More sharing options...
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