jben Posted March 6, 2008 Share Posted March 6, 2008 Hi again everyone. Started working with AutoIT again and creating a script to automate a software job. But I've now come across a problem. If I send text to an input box the script seems to stop. Code below: send ("C:\Program Files\FirefoxPortable") to ("Mozilla Firefox, Portable Edition | PortableApps.com Installer","", "1019","Edit1") $ReturnedValue = ControlClick("Mozilla Firefox, Portable Edition | PortableApps.com Installer","", "&Install","Button2") If $ReturnedValue = 0 Then MsgBox(0, "", "Failure") I'm presuming theres some sort of wait function?. Link to comment Share on other sites More sharing options...
jben Posted March 6, 2008 Author Share Posted March 6, 2008 (edited) I think it would be handy to know how to wait for another action to complete before proceeding. In this circumstance it seems like I need to wait for the send text to finish before clicking install. I also have another bit of the software that ticks a box and it should wait for thew box to be ticked before proceeding, Not sure how though. Edited March 6, 2008 by jben Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 6, 2008 Share Posted March 6, 2008 Send does not return until the keystrokes have been rendered. I don't believe the function was ever asynchronous. Link to comment Share on other sites More sharing options...
jben Posted March 6, 2008 Author Share Posted March 6, 2008 Is there any way of being able to enter text and wait for that text to have been entered before proceeding. Winwait doesn't seem like its capable? Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 7, 2008 Share Posted March 7, 2008 It'd be a bit more complicated unless you feel like just waiting for a specific text on the window. 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