Sign in to follow this  
Followers 0
jben

Issue with sending data and trying to continue script

5 posts in this topic

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?.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by jben

Share this post


Link to post
Share on other sites

Send does not return until the keystrokes have been rendered. I don't believe the function was ever asynchronous.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

It'd be a bit more complicated unless you feel like just waiting for a specific text on the window.

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