ChrisHill Posted October 26, 2008 Posted October 26, 2008 First off, thank you all for helping me with AutoIt. I'm from the Linux world, and I've found AutoIt to be a Windows gem for mass software installs.I'm working on an install script for a Macromedia InstallAnywhere file, and it has no "visible text". I can automate up to the install part (copying files, etc.), but I need one more Send("{SPACE}") at the end. However, because all the window titles are the same, if I send the Send("{SPACE}") after the install starts, it cancels (b/c space hits the cancel button).Here's what I propose, but I don't know how to implement it:1) Use my script to automate up to install part.2) During install (copy files), run a loop that does two things: *Check if a file exists (desktop icon) *Wait 60 seconds3) When it does find this file (meaning install finished), send a Send("{SPACE}").I've been researching the While,Wend loop, but I really need help structuring. Thanks for any help! It's much appreciated!
SoulA Posted October 26, 2008 Posted October 26, 2008 (edited) For the loop you can do this... While 1 If FileExists("C:\filename.ico") Then Send("{SPACE}") ExitLoop EndIf Sleep(60000) ;60 seconds WEnd Edited October 26, 2008 by SoulA
Zisly Posted October 26, 2008 Posted October 26, 2008 (edited) For 2 and 3 While 1 sleep(60*1000); 60 sec if FileExists("C:\filename.ico") = 1 then; if file does exist Send("{SPACE}") exitloop EndIf WEnd Should work Edited October 26, 2008 by Zisly
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