Trigger Custom Event
msfs_trigger_custom_eventFire custom MSFS key events via the MobiFlight WASM module to trigger events outside the standard SimConnect catalog. Accepts an optional integer parameter.
Instructions
Fire a custom event as a key event through the MobiFlight WASM module.
Requires the MobiFlight WASM module. The event is delivered via the WASM
module's RPN interface -- (>K:NAME), or PARAM (>K:NAME) when a
parameter is given -- not through native SimConnect event mapping (that
is msfs_trigger_event). This reaches events outside the standard
SimConnect catalog.
An aircraft with its own event system (PMDG, Fenix) may silently ignore
a default key event in favour of its own SDK: measured live against a
PMDG 737, PARKING_BRAKES delivered through this path had no effect on
the aircraft's brake state, while a sim-level event (no aircraft can
intercept it) delivered correctly. A no-op result on such aircraft means
the aircraft ignored the event, not that this tool failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Custom event name, e.g. 'MobiFlight.AS1000_PFD_SOFTKEYS_1' | |
| parameter | No | Optional integer parameter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |