Send a notification
send extended notification [MESSAGE]Resumes every script already waiting for the same name.
Complete block reference (5 blocks)
TurboWarp custom extension
Coordinate scripts with named notifications, keyboard events, and optional timeouts—without polling.
01 · Install
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-extended-notification@0.2.1/dist/extended-notification.js
Why unsandboxed? Keyboard waits listen for browser key events and all waits are cancelled when the TurboWarp runtime stops. Load the extension only from a source you trust.
For a local dependency, run:
npm install --save-exact @kubohiroya/turbowarp-extended-notification@0.2.1
02 · Blocks
send extended notification [MESSAGE]Resumes every script already waiting for the same name.
wait until extended notification [MESSAGE] is receivedPauses this script until that notification arrives.
extended notification [MESSAGE] received before [SECONDS] secondsReturns true for the notification and false for timeout or project stop.
wait until [KEY] key is pressedObserves a new keydown after the block starts waiting.
[KEY] key pressed before [SECONDS] secondsReturns which event happened first.
03 · Behavior
See the complete behavior specification for normalization and compatibility details.
All 5 blocks are documented below, including compatibility blocks and blocks available through optional features. Select a block to read its behavior, arguments, default values, and menu choices. Each block has a permanent link.
send extended notification [MESSAGE]Sends a named notification to every script currently waiting for that name.
Block type: COMMAND. Opcode: sendNotification. Permanent link
| Argument | Type | Default value | Menu choices |
|---|---|---|---|
MESSAGE | STRING | next |
wait until extended notification [MESSAGE] is receivedPauses the current script until the named notification is received.
Block type: COMMAND. Opcode: waitForNotification. Permanent link
| Argument | Type | Default value | Menu choices |
|---|---|---|---|
MESSAGE | STRING | next |
extended notification [MESSAGE] received before [SECONDS] secondsReturns true when the named notification arrives before the timeout, otherwise false.
Block type: BOOLEAN. Opcode: waitForNotificationOrTimeout. Permanent link
| Argument | Type | Default value | Menu choices |
|---|---|---|---|
MESSAGE | STRING | next | |
SECONDS | NUMBER | 5 |
Fixed literal fields: SECONDS. Editing UI and preservation rules.
wait until [KEY] key is pressedPauses the current script until the selected key is pressed.
Block type: COMMAND. Opcode: waitForKey. Permanent link
| Argument | Type | Default value | Menu choices |
|---|---|---|---|
KEY | STRING | space |
[KEY] key pressed before [SECONDS] secondsReturns true when the selected key is pressed before the timeout, otherwise false.
Block type: BOOLEAN. Opcode: waitForKeyOrTimeout. Permanent link
| Argument | Type | Default value | Menu choices |
|---|---|---|---|
KEY | STRING | space | |
SECONDS | NUMBER | 5 |
Fixed literal fields: SECONDS. Editing UI and preservation rules.
With a compatible TurboWarp GUI, enable fixed-input forms to edit only standard literal fields. Numbers use complete finite JSON number tokens; menu fields use existing choices. Connected reporters and unavailable fields stay read-only and are never evaluated. Saving an unchanged form preserves exact existing raw values, including legacy spellings and unknown choices. Invalid drafts stay in the same editing session; cancel, project/target replacement, or block removal discards them. Disabling the GUI feature flag restores native field editing. This form does not run blocks, open network/audio/key/QR sessions, resolve names, or edit Schema arguments.
waitForNotificationOrTimeout: SECONDSwaitForKeyOrTimeout: SECONDS