Sleep Method?

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Sleep Method? // Scriptorium

1  |  

Post by trueBlue // Oct 19, 2006, 6:51am

trueBlue
Total Posts: 1761
pic
Is there a way to use the Sleep Method in a trueSpace7 script?
Possible uses would be accessing Keyboard shortcuts and for instance closing down Excel in the jScript version of the Labyrinth.

Sleep Method
Suspends script execution for a specified length of time, then continues execution.
object.Sleep(intTime)

Arguments
object WScript object.

intTime Integer value indicating the interval (in milliseconds) you want the script process to be inactive.
The thread running the script is suspended, releasing its CPU utilization. Execution resumes as soon as the interval expires. Using the Sleep method can be useful when you are running asynchronous operations, multiple processes, or if your script includes code triggered by an event. To be triggered by an event, a script must be continually active (a script that has finished executing will certainly not detect an event). Events handled by the script will still be executed during a sleep.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn