SetTimeOut

Purpose:

Execute a subroutine, after waiting a specified number of milliseconds.

Category:

Time/Date

Syntax:

SetTimeOut milliseconds "subroutine" [timeout var]
millisecods

Millisecods to wait before calling the subroutine (delay).

subroutine

Subroutine name.

timeout var

Variable name to store the TimeOut.

Example:

SetTimeOut 2000 "mySubroutine" [myTimeOutVar]


ClearTimeOut

Purpose:

Stops a given TimeOut.

Category:

Time/Date

Syntax:

ClearTimeOut [timeout var]

timeout var

Variable name where the TimeOut is stored.

Example:

ClearTimeOut [myTimeOutVar]


SetInterval

Purpose:

Repeat the execution of a subroutine continuously every given time-interval in milliseconds.

Category:

Time/Date

Syntax:

SetInterval milliseconds "subroutine" [interval var]

millisecods

Millisecods to wait before calling the subroutine each time (delay).

subroutine

Subroutine name.

interval var

Variable name to store the Interval.

Example:

SetInterval 2000 "mySubroutine" [myIntervalVar]


ClearInterval

Purpose:

Stops a given Interval.

Category:

Time/Date

Syntax:

ClearInterval [interval var]

interval var

Variable name where the Interval is stored.

Example:

ClearInterval [myIntervalVar]


Delay

Purpose:

Pause script execution for a specified number of milliseconds.

Category:

Time/Date

Syntax:

Delay "number of milliseconds"

Example:

Delay 1000