The state of a parallel click or swipe when it was queried. Obtain it from Touch methods; it does not update automatically.
Syntax
TouchState(id, status, kind, action_order, remaining_repeats, completed_repeats)This class cannot be constructed directly.
Returns
—Example
# TouchState values come from a touch-state query; do not construct them
Touch.collect()
click((300, 900), hold_ms=1000, parallel=True)
Touch.send()
for state in Touch.all():
print(state.id, state.status, state.kind)
Touch.wait()Fields
| Name | Description |
|---|---|
idNumber | Touch submission id. |
statusString | queued: waiting; active: running; completed: finished successfully; cancelled: cancelled; failed: could not finish. |
kindString | Touch kind such as click or swipe. |
action_orderNumber | Order of the macro action that submitted this gesture. |
remaining_repeatsNumber | Repetitions not yet completed. Default: 0 |
completed_repeatsNumber | Repetitions already completed. Default: 0 |