TouchState

Snapshot of one script/UI touch item in the shared gesture queue.

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

NameDescription
idNumber
Touch submission id.
statusString
queued, active, completed, cancelled, or failed.
kindString
Touch kind such as click or swipe.
action_orderNumber
Owning action order.
remaining_repeatsNumber
Repeats still queued.
Default: 0
completed_repeatsNumber
Repeats already completed.
Default: 0