Let GUI pop-ups answer themselves
cm_popup_timeoutSet a timeout so GUI pop-ups answer themselves with their default choice, preventing questions like unsaved changes from blocking automated CarMaker runs.
Instructions
Let GUI pop-ups raised by this server's commands answer themselves with their DEFAULT choice, so that a question such as 'Vehicle not saved. All changes will be lost. OK to continue?' cannot block a run. The default answer there discards the unsaved changes. Read what was answered with cm_popups. Stays until set back, cm_revert_all or a GUI restart.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"seconds": "<seconds>"
},
"name": "cm_popup_timeout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seconds | Yes | Seconds until a pop-up answers itself; 0 = never shown; -1 = wait for a click in the GUI (the normal setting) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||