Mikeboy Posted September 26, 2005 Posted September 26, 2005 (edited) Hi , I've been lurking and reading for a while, particularly over the last weekend.I've been following the MSFN Unattended XP CD How-To guide, and so far it has been going well. I always install most of my programs to my second partition, D:\. The CD will always/only be used for my computer, so there's no worries of the D: ever changing. So I've made this script with AutoIT for PowerDVD6. Obviously it is not finished yet, but I'm having trouble entering the install path 'D:\Program Files\CyberLink\PowerDVD'$MYPATH= "D:\Program Files\CyberLink\PowerDVD"Run("PowerDVD6.exe"); Wait for Initial Setup ScreenWinWaitActive("CyberLink PowerDVD v6.0 Setup...", "&Next >")Send("!n");Send Alt+NWinWaitActive("CyberLink PowerDVD v6.0 Setup...", "License Agreement")Send("!y")WinWaitActive("CyberLink PowerDVD v6.0 Setup...", "default media player for the following file types")send("!n")WinWaitActive("CyberLink PowerDVD v6.0 Setup...", "Setup will install the following programs")send("!n")WinWaitActive("CyberLink PowerDVD v6.0 Setup...", "Customer Information")send("!n")WinWaitActive("CyberLink PowerDVD v6.0 Setup...", "Choose Destination Location")send("!r")WinWaitActive("Choose Folder", "Choose Destination Location")Send($MYPATH);---------------------------------------------PROBLEMSend("{Enter}")WinWaitActive("CyberLink PowerDVD v6.0 Setup...", "Confirm Destination")send("!n")At the WinWaitActive("Choose Folder", "Choose Destination Location") stage, the path is pre-selected (as Attachment) - so I thought if I just send the new path it would overwrite it, and then press <enter> to confirm it? But it doesn't work - it stops at this point. I've tried Send("D:\Program Files\CyberLink\PowerDVD") too without success.. I've browsed through the help file but that got a bit heavy going (+ I'm a very slow reader) and it wasn't really relevant. Hope someone can put this right and that it isn't anything difficult. Keep in mind I'm completely new to AutoIT - only started using it last night. Thanks in advance Edited September 26, 2005 by Mikeboy
InTheWayBoy Posted September 26, 2005 Posted September 26, 2005 Would double qoutes be the problem? You might wanna change this:$MYPATH= "D:\Program Files\CyberLink\PowerDVD"To this:$MYPATH= ""D:\Program Files\CyberLink\PowerDVD""But I'm probably wrong Give it a shot!
MHz Posted September 26, 2005 Posted September 26, 2005 WinWaitActive("Choose Folder", "Please choose the installation folder")Send($MYPATH);---------------------------------------------PROBLEMSend("{Enter}")You are using the text of the parent window which is not active instead of the text of the child window which is active. Your WinWaitActive function needs the correct text to continue onwards.
Mikeboy Posted September 26, 2005 Author Posted September 26, 2005 YYYYYES ! Thank you so much both MHz that works perfect - I didn't realise you could actually reference a field like that - I thought the text in the 2nd argument thing in the WinWaitActive could be anything you choose as long as its unique.. I know that is not the case now , Thanks
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