pub async fn control(input: &ComputerControl) -> Result<ControlOutput, String>Expand description
Run a desktop-control pipeline: pointer and keyboard steps chained via
then, executed sequentially in ONE call with && semantics โ each
step runs only if the previous succeeded, and the first failure aborts
with the exact failing step and the report of what completed.
ยงErrors
Returns Err (before any side effect) for an invalid step anywhere in
the chain: a step with both or neither action kind, pointer fields on a
keyboard step, key with text, text with held, unknown key or
modifier names, an invalid pointer target combination, or a chain
deeper than CONTROL_CHAIN_MAX_DEPTH. Returns Err mid-chain
(earlier steps stay applied โ they were real events) when an
app/selector does not resolve or the platform input backend is
unavailable.