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.

Axis & Oh's MSFS 2024 Script commands when only in focus win

Featured Replies

Hello,

I have created several script commands in Axis & Oh's that are working great with my Fenix A321 in MSFS 2024. However, the keyboard script commands appear to be sending commands to the simulator even when MSFS 2024 is the not the "focus window".

For example, when I push the letter "A" on my keyboard when I'm in google, or Discord or anything other program, the "A" command script that I have created in Axis and Oh's is sending my script command to the simulator and starting the APU.

Is there a script or some solution that you can offer than will only send my script commands when MSFS 2024 is the focus window? This way I can continue to use other programs on the computer during the flight, without constantly sending erroneous commands to the simulator.

Thanks!

For clarity, here is the example script I created in Axis and Oh's and assigned to the "A" button on my keyboard:

(L:S_OH_ELEC_APU_MASTER,·Number)·0·==·
if{·1·(>L:S_OH_ELEC_APU_MASTER,·Number)·}

  • Commercial Member

Sorry, but that is intentional. For one, the SimConnect API doesn't care about app focus, it always works, even from another computer. Second, many people are running additional apps and addons alongside the sim. If AAO would only work when the sim window has the focus, it couldn't do its job, it would constantly be blocked by the app focus being shifted elsewhere. Besides, many people are using full screen mode and might not even be aware of app focus.

Granted that this is a problem for keyboard based setups. Which is why many simmers get themselves a button box of some kind, like the StreamDeck, Behringer X-Touch, etc.

The only solution off the top of my head would be to have a special button/combo that you use to toggle the AAO controls on or off when you need them.

For example with the AAO Control Layers, you would put all your button assignments on the yellow layer. Then you would add two additional button assignments that switch bettwen the default/gray layer and the yellow one. When you fly, you switch to yellow, when you do something else, you switch to default (or red,green,whatever).

Same principle could be applied using the AAO Combo Button feature - you add the same "Combo" assignment to all buttons, setting it to toggle mode. Then you can use that to toggle all buttons on or off.

Edited by Lorby_SI

LORBY-SI

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.