Jump to content

Recommended Posts

Posted

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

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
Posted

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?

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
×
×
  • Create New...