Philip Posted June 15, 2010 Posted June 15, 2010 (edited) 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 June 15, 2010 by Philip
KaFu Posted June 15, 2010 Posted June 15, 2010 WinWaitActive("Ultr",10) Is this really correct? I'm not sure if an integer is even a valid second param by itself. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Zibit Posted June 15, 2010 Posted June 15, 2010 yea you got that wrong... its more like this WinWaitActive ( "title" [, "text" [, timeout]] ) ex: WinWaitActive("Ultr", "", 10) Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam
Philip Posted June 15, 2010 Author Posted June 15, 2010 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...
Philip Posted June 15, 2010 Author Posted June 15, 2010 Issue solved: apparently, the window-title contained a space before the first character (very hard to see!)...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now