Name
SetEventTimeout -- define event cache duration (V1.9)
Synopsis
SetEventTimeout(duration)
Function
You can use this function to tell Hollywood for how long it should cache input events. The default value is currently 60000 which means that all events will be cached for 60 seconds. This function can be useful if you have a function that blocks the program flow for some time, e.g. if you do some heavy computing that takes longer than 60 seconds, all events that occurred more than 60 seconds ago will get lost. To prevent that, just increase the event timeout.

Starting with Hollywood 7.0, it is also possible to set duration to -1 to disable event timeouts completely. In that case, events will never get lost.

Inputs
duration
specifies for how long events will be cached (in milliseconds)
Example
SetEventTimeout(5000)
Sets the event cache duration to 5 seconds (= 5000 milliseconds).

Show TOC