How to set delay in vbscript

前端 未结 11 1416
鱼传尺愫
鱼传尺愫 2020-12-03 09:35

How to set delay in vbscript?

WScript.Sleep(100) does not work on Windows XP, Vista.

11条回答
  •  情歌与酒
    2020-12-03 10:10

    Work this end (XP).

    Create a new file, call it test.vbs. Put this in it.

    WScript.Sleep 1000
    MsgBox "TEST"
    

    Run it, notice the delay before the message box is shown.

    Note, the number is in Milliseconds, so 1000 is 1 second.

提交回复
热议问题