@ [[skip|else] if [not]|while [not]|<RetVar/IF> = ] wait
<Var/Number> ms
Causes the script to pause for the length of time specified by
<Var/Number>.
The delay is approximate.
Generally it can be counted on that the delay will be at least for the specified length of time.
No delay can be less than the length of time it takes for one screen refresh
(see Note), so a one millisecond wait will delay until the next refresh.
Note:
Take the current refresh rate in frames per second and divide that into 1000 to get the number of milliseconds per frame.
This will be the minimum wait time.
A utility called 'fraps' (
http://www.fraps.com) can tell you what your current frame rate is.
Of course, the frame rate in any given situation will depend on the processing power of the user's computer who is running your script.
But it's a good thing to remember that any wait placed in your script will delay for at least one frame.
For example, any wait placed inside a loop will cause the loop to iterate at most once per frame.
- 1Flow Control
- 2Script Calls
- 3Arrays
- 4Strings
- 5Math
- 6Commands/Signals
- 7<RetVar/IF><Expression>
- 8inc RetVar
- 9dec <RetVar> =
- 10@ <RetVar/IF> wait <Var/Number> ms
- 11@ <RetVar/IF> wait randomly from <Var/Number> to <Var/Number> ms
- 12<Var/Number> = random value from 0 to <Var/Number> -1
- 13<Var/Number> = random value from <Var/Number> to <Var/Number> -1
- 14*<Comment>
- 15<RetVar> = script engine version
- 16<RetVar> = get script version
- 17<RetVar/IF> is a new script version available
- 18<RetVar> = get script name
- 19<RetVar> = = get script priority
- 20set script priority to <Var/Number>
- 21infinite loop detection enabled = <Var/Number>
- 22<RetVar/IF> is script with prio <Var/Number> on stack
- 23<RetVar/IF> get task ID
- 24<RetVar/IF> get PID
- 25enable signal/interrupt handling: <Var/Number>
- 26<RetVar/IF> is signal/interrupt handling on
- 27<RefObj> set local variable: name = <Var/String> value = <Value>
- 28<RetVar/IF><RefObj> get local variable: name = <Var/String>
- 29set global variable: name = <Var/String> value = <Value>
- 30<RetVar/IF> get global variable: name = <Var/String>
- 31<RetVar> = datatyp[ <Value> ]
- 32<RetVar/IF> is datatyp[ <Value> ] == <Var/Script Data Type>
- 33<RetVar> = read text: page= <Var/Number> id = <Var/Number>
- 34<RetVar/IF> = read text: page id = <Var/Number>, from <Var/Number> to <Var/Number> to
- 35<RetVar/IF> = read text: page id = <Var/Number>, id = <Var/Number> exists
- 36<RetVar> = sprintf: fmt = <Var/String>, <Value>, <Value>, <Value>, <Value>, <Value>
- 37<RetVar> = sprintf: pageid = <Var/Number> textid = <Var/Number>, <Value>, <Value>, <V
- 38load text: id = <Var/Number>
- 39<RetVar/IF> state of news article: page = <Var/Number> id = <Var/Number>
- 40set state of news article page = <Var/Number> id = <Var/Number> to <Var/Number>
- 41<RetVar/IF> system date is month = <Var/Number>, day = <Var/Number>
- 42RetVar playing time
- 43<RetVar/IF> is plot <Var/Number> state flag <Var/Number>
- 44<RetVar> = register hotkey <Var/String> to call script <Script Name>
- 45<RetVar> = register hotkey <Var/String> to call script name <Var/String>
- 46unregister hotkey <Var/Number>
- 47<RetVar> = last load time
- 48<RetVar/IF><RefObj> get all local variable keys, starting with = <Var/String>
- 49<RetVar/IF> get all global variable keys, starting with = <Var/String>
- 50<RetVar/IF><RefObj> get local variables: regular expression = <Var/String>
- 51<RetVar/IF> get global variables: regular expression = <Var/String>
- 52<RetVar> = get maximum, <Var/Number>, <Var/Number>, <Var/Number>, <Var/Number>, <Var/
Bookmarks