Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

bind the B key on the keyboard

Featured Replies

How can I bind the B on the keyboard with the baro button in the Fenix A320?

kind regards

 

Alex

Windows 10 Pro I7-4770k 3,50GHz

Gigabyte GTX980TI. Driver 359.06

Ram 16 GB

  • 5 weeks later...

Hey there,

please let me know if you found a solution.

I'd like to have a toggle script that either sets the Standard Pressure or sets the ambient pressure (much like the B key would do).

Regards,

Danno

ngxu_banner.png

  • Commercial Member

The standard events from the SDK are BAROMETRIC and BAROMETRIC_STD_PRESSURE (use the filter box at the bottom of the event selection dialog in AAO to find them). You can bind those to any input device, just like everything else.

But there is no guarantee that they will work with every aircraft, because many aircraft developers are just ignoring the SDK and do their own thing. Like Fenix for example

Here are a couple of scripts for the Fenix that can be used to operate the Baro Knob on the left EFIS:

BARO_DEC:
(L:E_FCU_EFIS1_BARO,·Number)·--·(>L:E_FCU_EFIS1_BARO,·Number)·

BARO_INC:
(L:E_FCU_EFIS1_BARO,·Number)·++·(>L:E_FCU_EFIS1_BARO,·Number)·

BARO_MODE_TOGGLE:
(L:S_FCU_EFIS1_BARO_MODE,·Number)·!·(>L:S_FCU_EFIS1_BARO_MODE,·Number)·

BARO_STD_TOGGLE:
(L:S_FCU_EFIS1_BARO_STD,·Number)·!·(>L:S_FCU_EFIS1_BARO_STD,·Number)·

In general, your best course of action is to go on flightsim.to and look for a script package that has been made for the aircraft. For example the StreamDeck packages often contain script files that you can import and make use of.

Edited by Lorby_SI

LORBY-SI

Hey there,

thank you for the swift reply. However, that's not entirely what I am looking for.

e.g.:
BARO_STD_TOGGLE:
(L:S_FCU_EFIS1_BARO_STD,·Number)·!·(>L:S_FCU_EFIS1_BARO_STD,·Number)·

This one toggles between "STD" or the set QNH. I would like to toggle between "STD" and the current ambient barometric pressure, which is basically what pushing the B key would do.

 

What I came up with is:

(L:B_FCU_EFIS1_BARO_STD, number) 1 ==
if{ (VKD:48-176-66) (SPLIT:100) (VKU:48-176-66) }
els{ 1 (>K:FENIX_A3XX-EFIS_Baro_STD) }

If B_FCU_EFIS1_BARO_STD = 1 it does emulate a B keystroke (which amongst other actions sets B_FCU_EFIS1_BARO_STD to 0). However, if B_FCU_EFIS1_BARO_STD = 0 the script does not the FENIX_A3XX-EFIS_Baro_STD script.

(Needless to say that even if it worked it would not be 100% safe, since the B keystroke only works when MSFS is focused, but I could live with that.)

ngxu_banner.png

  • Commercial Member
24 minutes ago, danno1502 said:

Hey there,

thank you for the swift reply. However, that's not entirely what I am looking for.

e.g.:
BARO_STD_TOGGLE:
(L:S_FCU_EFIS1_BARO_STD,·Number)·!·(>L:S_FCU_EFIS1_BARO_STD,·Number)·

This one toggles between "STD" or the set QNH. I would like to toggle between "STD" and the current ambient barometric pressure, which is basically what pushing the B key would do.

 

What I came up with is:

(L:B_FCU_EFIS1_BARO_STD, number) 1 ==
if{ (VKD:48-176-66) (SPLIT:100) (VKU:48-176-66) }
els{ 1 (>K:FENIX_A3XX-EFIS_Baro_STD) }

If B_FCU_EFIS1_BARO_STD = 1 it does emulate a B keystroke (which amongst other actions sets B_FCU_EFIS1_BARO_STD to 0). However, if B_FCU_EFIS1_BARO_STD = 0 the script does not the FENIX_A3XX-EFIS_Baro_STD script.

(Needless to say that even if it worked it would not be 100% safe, since the B keystroke only works when MSFS is focused, but I could live with that.)

You will need an additional (FOCUS: command to make sure that the virtual keystroke ends up in the sim. Otherwise it will be processed by whatever app has the focus at the moment.


 

LORBY-SI

  • Commercial Member
29 minutes ago, danno1502 said:

which is basically what pushing the B key would do.

...and that is the default simulator event BAROMETRIC. It is working in the Fenix too.

And this would be your toggle script:

(L:S_FCU_EFIS1_BARO_STD,·Number)·d·1·==·if{·1·(>K:BAROMETRIC)·}·!·(>L:S_FCU_EFIS1_BARO_STD,·Number)

"Check if the baro is set to STD, and if it is, set the current pressure. Then Toggle the state of the baro"

LORBY-SI

3 minutes ago, Lorby_SI said:

...and that is the default simulator event BAROMETRIC. It is working in the Fenix too.

And this would be your toggle script:

(L:S_FCU_EFIS1_BARO_STD,·Number)·d·1·==·if{·1·(>K:BAROMETRIC)·}·!·(>L:S_FCU_EFIS1_BARO_STD,·Number)

"Check if the baro is set to STD, and if it is, set the current pressure. Then Toggle the state of the baro"

Thank you. That is brilliant...!!

So simple compared to what I had... much appreciated!

ngxu_banner.png

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.