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

Script stops before installation completes...

$
0
0
Hello gentlemen,

I just got started with AutoIt so please forgive me if this is a dumb question. My background is more of DOS batch scripting but it has some limitations.

Basically, the purpose of this script is to install Roxio.

Everything works fine up until the point where the installation begins. It is at this point where the installer takes a while before it gets to the next screen where it says the installation finished successfully. The script acts as thought it times out waiting for the next screen to show up.

WinWaitActive("Roxio Creator Starter Setup","Click Install to beg")
Send("!I")

Is there a command besides "WinWaitActive" to tell the script to wait for the next screen? Not sure if "SLeep" would work.

Here's a copy of the script... and I thank you for your time.


; Run Roxio installer
Run('C:\Temp\Roxio12\setup.exe')
WinWaitActive("Roxio Creator Starter Setup","Welcome to the Setup")
Send("!N")

WinWaitActive("Roxio Creator Starter Setup","I &accept the terms ")
Send("!A")
Send("!N")

WinWaitActive("Roxio Creator Starter Setup","&I will participate ")
Send("!N")

WinWaitActive("Roxio Creator Starter Setup","&Enter the install l")
Send("!N")

WinWaitActive("Roxio Creator Starter Setup","Click Install to beg")
Send("!I")

WinWaitActive("Roxio Creator Starter Setup","Setup Wizard Complet")
Send("!F")

WinWaitActive("Roxio Creator Starter","You must restart you")
Send("!N")

$SF_1 = "setup.exe"

If WinExists ( $SF_1 ) Then Exit
AutoItWinSetTitle ( $SF_1)

Attached Files


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>