Sign in to follow this  
Followers 0
chiners_68

What is the best way to delay a script?

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

I was aware of a runwait

the problem is i send keystrokes to complete the SP5 install after the exe file is run so i dont want it waiting before my SP5 keystrokes process.

Share this post


Link to post
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!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
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]

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