dosbox_send_keys
Send keystrokes into a DOSBox-X guest without host focus, pacing each key so the game processes it. Use small batches to avoid ring-buffer overflows.
Instructions
Type into the guest by appending to its BIOS keyboard ring buffer -- no window focus, no host keystrokes. Each item is a single character or a key name (space, enter, esc, tab, backspace, up, down, left, right, home, end, pgup, pgdn, plus, minus, f1..f10). Keys are paced apart so the game consumes them one screen at a time; the ring holds 15, so send small batches and let the game catch up. Fails cleanly if the ring is full, which means the game is waiting on the mouse, not the keyboard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| keys | Yes | Keys to send, in order. | |
| pace_seconds | No | Delay between keys. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||