Skip to main content

Module act

Module act 

Source
Expand description

The computer_act batch: what an agent sends, and the typed actions computerd runs.

Structs§

ActReply
Reply to POST /sessions/{id}/act.
ActRequest
Body of POST /sessions/{id}/act.
ActionError
Why a batch was refused. The text tells the agent what to fix.
Point
A position on the screen, in pixels from the top left corner.
RawAction
An action as the agent writes it. Which fields apply depends on kind.

Enums§

Action
One validated action. Double clicks are already split into two clicks.
Button
Mouse button.
Direction
Scroll direction.
Kind
Kind of a RawAction.

Constants§

DEFAULT_SCROLL_AMOUNT
Wheel steps per scroll action when it gives none.
DEFAULT_SETTLE_MS
Settle time before the closing screenshot when the batch gives none, in milliseconds.
DEFAULT_WAIT_MS
Wait length when an action gives none, in milliseconds.
KEYMAP_SETTLE
Time applications get to reread the keyboard after a temporary key binding changes.
MAX_ACTIONS
Most actions one batch may hold, counting each double click as two clicks.
MAX_SCROLL_AMOUNT
Most wheel steps one scroll action may take.
MAX_TYPE_CHARS
Most characters all type actions of one batch may hold together.
MAX_WAIT_MS
Longest single wait, and longest settle time, in milliseconds.