Pause the script until one of the inputs of a device changes (or a specified period of time elapses).
Returns true if an input has changed, or false if no input has changed.
[timeout] |
Time in milliseconds for the routine to wait before continuing. If a project role is stopped while waiting in this routine, the script will exit immediately at this line and no further processing will occur. This argument is optional. Note: If this argument is omitted, the routine will wait indefinitely for an input to change. |
To determine if any inputs have changed after the script returns from running wait_input_change([timeout]), query the input objects to obtain their current state. For example:
for input in inputs:
if input.change_get():
#do something
See also |