I want to know how to set up the map in orbiter so that it can be expanded with the spacecraft as the center and magnified, and how to open the simulation in script to open the map display without mouse click.
I mean to open the map dialog, not the map MFD. I want to open the map dialog automatically in scriptHello. All the keys for the MFDs are in the Orbiter Doc, in the doc folder. Generally, you use right shift or left shift (depending on if you want left or right mfd) combined with another key.
For example, hold L-shift and ESC to turn the left MFD off
Or press L-Shift and F1 to open the select MFD screen
So how can I automatically press Ctrl + m in the script of orbiterAh, I see. The map dialogue can be opened with CTRL + M. I don’t think there are any keyboard shortcuts for options inside it though
Orbiter Lua Script interface vessel:send_bufferedkey (keycode) Sends a keycode message to the vessel.
The key codes correspond to the values for the OAPIKEYxxx constants defined in OrbiterAPI.h. A convenient way to pick a keycode is via the ktable table. For example, ktable.A has value 0x1E, which represents the keycode for A. Only a subset of keycodes is currently defined in the ktable table.
The return value is 1 if the vessel could process the key message, or 0 otherwise.
Parameters:
- keycode int key identifier
Returns:
- int processing flag (1=key was processed, 0=key was ignored
I don't have this file in my orbiter. Can you send one to meLook in Orbiter 2016 Beta SDK/Doc/orbiter_lua.chm
thank you!If it can help you, that's a light file, no problem.
Still you should get Orbiter 2016 beta because LUA is kind of WIP that had more and more functions added over time.