Sign in to follow this  
Followers 0

Loop Tutorial help

3 posts in this topic

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 seconds

3) 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!

Share this post

Link to post
Share on other sites

#3 ·  Posted (edited)

For 2 and 3

While 1
sleep(60*1000); 60 sec
if FileExists("C:\filename.ico") = 1 then; if file does exist

Should work :P

Edited by Zisly

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  
Followers 0