Lingo Dictionary > T-Z > on timeOut |  |

on timeOut

Syntax

    on timeOut
    	statement(s)
    end

Description

System message and event handler; contains statements that run when the keyboard or mouse is not used for the time period specified in `timeOutLength.` Always place an `on timeOut` handler in a movie script.

To have a timeout produce the same response throughout a movie, use `the timeoutScript` to centrally control timeout behavior.

Example

This handler plays the movie Attract Loop after users do nothing for the time set in the `timeoutLength` property. It can be used to respond when users leave the computer.

    on timeOut
    	play movie "Attract Loop"
    end timeOut

See also

`timeoutScript`, `timeoutLength`