Jun 7, 2002 #1 Guest_imported New member Joined Jan 1, 1970 Messages 0 How can I make VBscript pause for about a second ? Is there a wait or pause command?
Jun 7, 2002 #2 BarkingFrog Programmer Joined Apr 6, 2001 Messages 96 Location US yup. put the following code just before the script that you want to run after the pause: Dim PauseTime, Start PauseTime = 1 'Set Duration Start = Timer 'Set start time Do While Timer < Start + PauseTime 'nothing happening Loop '...continue with code Upvote 0 Downvote
yup. put the following code just before the script that you want to run after the pause: Dim PauseTime, Start PauseTime = 1 'Set Duration Start = Timer 'Set start time Do While Timer < Start + PauseTime 'nothing happening Loop '...continue with code
Jun 7, 2002 #3 FengShui1998 MIS Joined Apr 27, 1999 Messages 705 Location US ukrpn, The code from Barking Frog uses CPU time. There is a SLEEP funtion Wscript.sleep (1000) ' In millisecond, pauses for 1 second fengshui_1998 Upvote 0 Downvote
ukrpn, The code from Barking Frog uses CPU time. There is a SLEEP funtion Wscript.sleep (1000) ' In millisecond, pauses for 1 second fengshui_1998