zfisherdrums Posted August 20, 2007 Share Posted August 20, 2007 (edited) An .NET application I'm working with has two tabs. When I select a tab to make its controls visible, the application hangs for a bit before displaying them. Is there a way to programatically determine if a window has rendered (painted) all of its controls? Edited August 20, 2007 by zfisherdrums Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... Link to comment Share on other sites More sharing options...
Zedna Posted August 20, 2007 Share Posted August 20, 2007 (edited) ; wait till disabled Button1 change its state to enabled While ControlCommand("window title", "window text", "Button1","IsEnabled","") = 0 Sleep(50) WEnd Edited August 20, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
zfisherdrums Posted August 22, 2007 Author Share Posted August 22, 2007 (edited) Zedna, Yes. That is one way. Thank you for the suggestion. The problem is that the controls change dynamically depending on an option selected in a ListView. > Option 'X' exposes 'Control1' which, when pressed, invokes behavior 'X' > Option 'Y' exposes 'Control1' which, when pressed, invokes behavior 'Y' So 'Control1' is the common denominator, but its context changes. I was looking for a way around hard-coding wait states. Looks like I may have to do that anyway. Thanks again for your reply and your help. Edited August 22, 2007 by zfisherdrums Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... 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