dar100111 Posted July 31, 2013 Posted July 31, 2013 (edited) Hey All, I have a script that is filling out screens in a program and controlsend commands are being sent. I have a status bar instance control, where the visible text always contains the string "Ready" in it when the form is complete or it's reached another screen. The string "Ready" is never in the same place though so I want to search through the text after I get it with Controlgettext. I was thinking about making a loadwait function for my script to never proceed until I can find the string "Ready" somewhere in that control. It says "downloading" somewhere in the text when it's not ready but It always show's the "Ready" string when the program isn't waiting. Has anyone attempted anything similiar in searching for a string in a big grouping of text? Was curious about how to do this and incorporate like a wait function. Thanks! Edited July 31, 2013 by dar100111
Solution JohnOne Posted July 31, 2013 Solution Posted July 31, 2013 Do ;Some flavour of timeout ;Sleep advised Until StringInStr(ControlGetText(...), "Ready") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
dar100111 Posted July 31, 2013 Author Posted July 31, 2013 Exactly what I needed to know. Thanks John! Sorry a bit new to all the predefined functions.
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