dictionary:more:dolater
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
dictionary:more:dolater [2018/01/15 15:23] – [Do Later] added more info and link to motion controlled light James Sentman | dictionary:more:dolater [2019/11/17 13:20] – added link to slow fade example James Sentman | ||
---|---|---|---|
Line 7: | Line 7: | ||
Don’t use do later for things that you need to adjust the timing of, or things where you might create more and more of them like a motion controlled light. Use the [[tutorials: | Don’t use do later for things that you need to adjust the timing of, or things where you might create more and more of them like a motion controlled light. Use the [[tutorials: | ||
+ | |||
+ | If you need a regular callback to the same handler or need to create such an event in another script use the [[dictionary: | ||
+ | |||
+ | A Global Script named “[[xtension_manual: | ||
+ | |||
===Usage: | ===Usage: | ||
**do later** [text] the name of the handler to do later. This will always be in the same script, you cannot do later into a different script. This works for Global Script, unit ON or OFF scripts or Interface scripts.\\ | **do later** [text] the name of the handler to do later. This will always be in the same script, you cannot do later into a different script. This works for Global Script, unit ON or OFF scripts or Interface scripts.\\ | ||
Line 12: | Line 17: | ||
**in** [integer] the number of milliseconds to call the handler specified in the default parameter. A second is 1000 milliseconds so if you wanted to run the named handler in 4 seconds you would specify 4000.\\ | **in** [integer] the number of milliseconds to call the handler specified in the default parameter. A second is 1000 milliseconds so if you wanted to run the named handler in 4 seconds you would specify 4000.\\ | ||
\\ | \\ | ||
- | **with data** [any or list of any: optional] if you have information you wish to pass on to the handler you can specify it here. Passing {“one”, “two”} would pass those into a handler written as: on myHandler( paramOne, paramTwo) where paramOne would be “one” and so forth. | + | **with data** [any or list of any: optional] if you have information you wish to pass on to the handler you can specify it here. Passing {“one”, “two”} would pass those into a handler written as: on myHandler( paramOne, paramTwo) where paramOne would be “one” and so forth. See the [[tutorials: |
===Examples: | ===Examples: | ||
Line 28: | Line 33: | ||
end partThree | end partThree | ||
</ | </ | ||
+ | |||
+ | ===See Also:=== | ||
+ | * [[dictionary: | ||
+ | * [[dictionary: | ||
+ | * [[xtension_manual: | ||
===Notes: | ===Notes: |
dictionary/more/dolater.txt · Last modified: 2023/02/13 14:52 by 127.0.0.1