Sign in to follow this  
Followers 0
parkerbl

Pause script during installation

6 posts in this topic

Hey guys. I have come yet again to seek the help of you all. I am writing a chunk of code for a scripted install of a particular program, and I was wondering if there was any way that during the install...where the files are actually being copied and the status bar is moving across, that I could pause the script and make it pick back up when the install is finished at that particular point and go on to the next screen or whatever? Any ideas?

Share this post


Link to post
Share on other sites



Hey guys. I have come yet again to seek the help of you all. I am writing a chunk of code for a scripted install of a particular program, and I was wondering if there was any way that during the install...where the files are actually being copied and the status bar is moving across, that I could pause the script and make it pick back up when the install is finished at that particular point and go on to the next screen or whatever? Any ideas?

Maybe a combination of WinWait()? Check out all the Win*() functions. They may be able to help you get that accomplished. WinExists() is anotehr that comes to mind.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

you have 2 options:

RunWait();will pause the script till the launched program is finished.

-or-

$pid = Run()
While ProcessExists($pid)
  ; Whatever you want to do
   Sleep(50)
Wend

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 could check control texts...like as soon as a button comes up saying "next" or "finish" then do w/e

--hope this helps


AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!

Share this post


Link to post
Share on other sites

Thank you guys so much for the help...it has been tremendously appreciated. Another quick question I need to ask you all instead of opening up a new thread is. I am managing a group of large labs of computers that are all standardized to a certain specific with software and hardware down to the last detail, and one of the requirements is that all machines have the same desktop. Is there any quick way to set the desktop to a certain file via an AutoIT script rather than having to open the Display Properties box? Thanks again guys.

Share this post


Link to post
Share on other sites

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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