Jump to content
Sign in to follow this  
Philip

Script pauses

Recommended Posts

Philip

Hi everyone,

I'm new to AutoIt. I have created a small script to install UltraVNC. It all goes well, until the final step: I need to enter a default password

in the application, and check some options. When this screen becomes active, the script goes into Paused and stays there...

What am I doing wrong? My script is below

Note: OS is Windows 7

Opt("WinTitleMatchMode", 1)

Run( "UltraVNC_1.0.8.2_Setup.exe")

WinWaitActive( "Select Setup Language")

Send("{ENTER}")

WinWaitActive( "Setup - UltraVNC", "This will install")

Send("{ENTER}")

WinWaitActive( "Setup - UltraVNC", "Please read the following")

Send("{TAB}{UP}{ENTER}")

WinWaitActive( "Setup - UltraVNC", "When you are ready")

Send("{ENTER}")

WinWaitActive( "Setup - UltraVNC", "Setup will install")

Send("{ENTER}")

WinWaitActive( "Setup - UltraVNC", "Select Components")

Send("{DOWN}{DOWN}{ENTER}")

WinWaitActive( "Setup - UltraVNC", "Setup will create")

Send("ITSupport\UltraVNC{ENTER}")

WinWaitActive( "Setup - UltraVNC", "Select the additional")

Send("{SPACE}{DOWN}{SPACE}")

Send("{ENTER}")

WinWaitActive( "Setup - UltraVNC", "Click Install")

Send("{ENTER}")

WinWaitActive( "Setup - UltraVNC", "Information")

Send("{ENTER}")

WinWaitActive( "Setup - UltraVNC", "Completing the")

Send("{ENTER}")

WinWaitActive( "Ultr",10)

Send("password{TAB}password{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{SPACE}{TAB}{SPACE}")

Send("{ENTER}")

Edited by Philip

Share this post


Link to post
Share on other sites
KaFu

Share this post


Link to post
Share on other sites
Philip

Thnx KaFu & Zibit for your replies.. However; this doesn't solve the problem.

I've tried with double quotes in the middle: no success.

Since the middle text and timeout are both optional parameters, I left the out and tested like that: no success.

Thing is that the windows in question is displayed and active, but nothing else happens then next...

Share this post


Link to post
Share on other sites
Philip

Issue solved: apparently, the window-title contained a space before the first character (very hard to see!)...

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.