Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How to wait for Finish button to appear and click it?

$
0
0
Here is my code, most simple code in the world!

Run('MSIEXEC.EXE /I secureclientinstaller.msi')
WinWaitActive("SecureAssess Central - SecureClient AAT")
Send("!N")
Send("C:\Program Files\SecureAssess Central - SecureClient AAT")
Send("!N")


After the last line where I press 'Next' actual install starts but it depends on speed of the machine so don't really want to use Sleep.

On Dell OptiPlex 990 install finishes in 45 seconds where else on OptiPlex GX620 it takes 80 seconds - you get the idea.

How do I wait until finish button appears to actually press it and finish the installation?

Sorry if this has already been covered but I cannot find a simple enough solution!

cheers,

Adrian

Viewing all articles
Browse latest Browse all 12506

Trending Articles