Question I want to know about orbiter's own map settings

xjflcf520

Member
Joined
Feb 26, 2021
Messages
70
Reaction score
6
Points
23
Location
Chana
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.
 

Owenmck

Read the documentation!
Joined
Apr 18, 2020
Messages
125
Reaction score
117
Points
58
Location
Scotland
Hello. 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
 

xjflcf520

Member
Joined
Feb 26, 2021
Messages
70
Reaction score
6
Points
23
Location
Chana
Hello. 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
I mean to open the map dialog, not the map MFD. I want to open the map dialog automatically in script
 

Attachments

  • 屏幕截图(89)_LI.jpg
    屏幕截图(89)_LI.jpg
    1.9 MB · Views: 7
  • 屏幕截图(90)_LI.jpg
    屏幕截图(90)_LI.jpg
    2 MB · Views: 7

Owenmck

Read the documentation!
Joined
Apr 18, 2020
Messages
125
Reaction score
117
Points
58
Location
Scotland
Ah, 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
 

xjflcf520

Member
Joined
Feb 26, 2021
Messages
70
Reaction score
6
Points
23
Location
Chana
Ah, 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
So how can I automatically press Ctrl + m in the script of orbiter
 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,278
Reaction score
3,247
Points
203
Location
Toulouse
Look in Orbiter 2016 Beta SDK/Doc/orbiter_lua.chm

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:​

  1. int processing flag (1=key was processed, 0=key was ignored
 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,278
Reaction score
3,247
Points
203
Location
Toulouse
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.
 

Attachments

  • orbiter_lua.zip
    48.2 KB · Views: 1
Top