Suspends the execution of the current thread for a specified interval.
Kernel.Sleep (Milliseconds as Long)
| Where | Type | Optional | Default | Description |
|---|---|---|---|---|
| Milliseconds | Long | Specifies the time, in milliseconds, for which to suspend execution. |
A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution. A value of toInfinite(-1) causes an infinite delay.
Kernel - Sleep for 2second |
Set Kernel = CreateObject("ScriptUtils.Kernel")'Creates the Kernel object
Kernel.Sleep 2000 |
CloseHandle, CopyFile, CreateProcess, DeleteFile, GetFileSize, MoveFile, Sleep, SwitchToThread, WaitForSingleObject
CommandLine, ComputerName, CurrentDirectory, CurrentProcess, CurrentThread, EnvironmentStrings, EnvironmentVariables, hrCounter, hrFrequency, hrTimeCounter, TempPath, TickCount
COM API for calling some of Kernel32 functions.
© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz