Jump to content

What is the best way to delay a script?


Recommended Posts

I need a command i can set a wait time on before it proceeds.

After installing SP5 for VS6 i have SP6 installing but SP5 hasnt fully closed before SP6 runs & it reports it cannot run as another installation is running.

I just want to put in a 10second delay between one & the other.

Link to comment
Share on other sites

A ten second delay is achieved by putting in a

Sleep(10000)

Edit: are you aware that there is also a RunWait command?

Runs an external program and pauses script execution until the program finishes.

Alzo Edited by marfdaman

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Link to comment
Share on other sites

? Basically you're saying that there is some time between the ending of the .exe of the SP5 install, and the time you want to start the SP6 one? What happens when you

1. Run the SP5 install;

2. Send your keystrokes;

3. Wait some time (10 secs you said), this wuld be a sleep or a loop with the Timer functions

4. Run the SP6 install?

Is this what you want to do, or am I still missing something?

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Link to comment
Share on other sites

If marfdaman has summarized your request correctly, then I would take a look at ProcessWaitClose for step 3.

? Basically you're saying that there is some time between the ending of the .exe of the SP5 install, and the time you want to start the SP6 one? What happens when you

1. Run the SP5 install;

2. Send your keystrokes;

3. Wait some time (10 secs you said), this wuld be a sleep or a loop with the Timer functions

4. Run the SP6 install?

Is this what you want to do, or am I still missing something?

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...