dosbox_click
Simulate mouse clicks inside a DOSBox guest by injecting INT 33h mouse state; the click repeats over a configurable duration so the game captures it, while the host pointer stays still.
Instructions
Click at a guest screen coordinate by writing the game's own mouse state, the words its INT 33h handler normally fills in. The host pointer never moves. The state is rewritten continuously for duration because the game's handler keeps overwriting it; a single write usually loses that race. Beware: on 'click to continue' pages one click can advance two pages -- send a key instead when paging through lists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Guest X, 0 to screen width - 1. | |
| y | Yes | Guest Y, 0 to screen height - 1. | |
| pid | No | ||
| button | No | 1 left, 2 right, 3 both. | |
| duration_seconds | No | How long to hold the click. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||