Send input
vm_inputSimulate editor input for headless Scratch VM: send key presses, mouse clicks, and answers to pending ask-and-wait questions, using stage coordinates for precise control.
Instructions
Feed input into the headless VM the way the editor would: key presses, mouse position/clicks, and answers to ask and wait. Stage coordinates run -240..240 (x) and -180..180 (y).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | ||
| answer | No | Answer the pending `ask and wait` question. | |
| mouseX | No | Mouse x in stage coords (-240..240). | |
| mouseY | No | Mouse y in stage coords (-180..180). | |
| mouseDown | No | Mouse button state. |