From 0b42902ecd169d9c2d5bf4347c939bdb6da78605 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 25 Sep 2026 23:02:09 -0300 Subject: sketchbook: await in scripts await FIELD VALUE plays frames until a state field holds the value, for up to a minute: for waits whose length is the sketch's business, such as a line of dialogue typing out. --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') diff --git a/README.md b/README.md index 62e5ab1..282cc4f 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ queued and played. sketch. - **Scripts** (`--headless --fresh --script file`) drive the same routing and frames as a player: `click`, `key`, `type`, `console`, `expect field value`, + `await field value` (frames until it holds, a minute at most), `expect-audio`, `screenshot`, `load`, `reload`, `await-reload`. A failed `expect`, or a console line that errors (a sketch command returning an error included), fails the script. Headless always means offscreen, even -- cgit v1.3