Sign in to follow this  
Followers 0
Omatsei

Automated Install of Several Programs

5 posts in this topic

This is a general question about AutoIt and how it works... I found a script (and subsequently modified it heavily) that gives me several applications to choose from, then I check which ones I want installed, then it installs them for me. The problem at the moment is that it doesn't wait until the previous install is finished before it continues to the next one.

I've been playing around with AutoIt for a few days, and I really like it. Thus far, I've managed to solve all my problems in writing scripts, but to be honest, I'm kinda tired of searching for hours to find some simple function that I didn't realize was there (it took me 3 hours to figure out that the "AutoIt Window Info" app was in the start menu...).

Is there some easy way I can tell it to wait until the previous AutoIt-launched window is closed before opening a new install?

Share this post


Link to post
Share on other sites



This is a general question about AutoIt and how it works... I found a script (and subsequently modified it heavily) that gives me several applications to choose from, then I check which ones I want installed, then it installs them for me. The problem at the moment is that it doesn't wait until the previous install is finished before it continues to the next one.

I've been playing around with AutoIt for a few days, and I really like it. Thus far, I've managed to solve all my problems in writing scripts, but to be honest, I'm kinda tired of searching for hours to find some simple function that I didn't realize was there (it took me 3 hours to figure out that the "AutoIt Window Info" app was in the start menu...).

Is there some easy way I can tell it to wait until the previous AutoIt-launched window is closed before opening a new install?

Are you using Run() or RunWait() to start the installer ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Run()... Should I be using RunWait()? I did some searching on it, but it seemed like it was for something else.

Share this post


Link to post
Share on other sites

Run()... Should I be using RunWait()? I did some searching on it, but it seemed like it was for something else.

The Helpfile will tell you the difference but Yes you want RunWait() when you want to wait for the shelled application to complete before continuing....

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You're right, of course. Sorry for such a dumb question... I knew it was something easy (I was looking at all manner of sleep(), do...until, when...wend, if...then, etc. I figured it was something easy. :whistle:

Thanks a lot!

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