idle | |
Type | message |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Associations | card |
Summary | Sent periodically to the current card if no other message is being sent. |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Related | Command: revVideoGrabIdle, send, wait Glossary: object, current card, variable, handler, handle, execute, message, message path, command Property: idleRate, idleTicks, properties |
Description | Handle the idle message to check constantly on the status of an object, the content of a variable, and so forth, or to do periodic tasks. The period between idle messages is specified by the idleRate and idleTicks properties.
The following example does the same thing more efficiently, since it only needs to handle a single message every sixty seconds:
Executing an idle handler slows down other LiveCode actions, so handle the idle message only in the rare cases where the send command cannot be used instead.
|
Tags | ui |