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.

Toggle Switch To Switch Views

Featured Replies

Hello,

I would like to use a Toggle switch to switch between various views I have saved.  Basically Alt+1, Alt+2, Alt+3, etc

It works with the Hotkey but there is no option for a second state image so I can easily see what view is selected.

When I select a Toggle , I am unsure what type of Key Down Event to use and how I would send Alt+1 to the sim.

How do I go about this, or, is there a better way?

Thanks!

  • Commercial Member

You can send virtual keyboard events with AAO. A script is recommended for doing that, which first sets the Windows FOCUS on flightsim before sending the keyboard key. There are examples for that in the AAO manual.

If the scan codes of your keyboard are the same as on mine, the script looks like this:

(FOCUS:flightsimulator) (SPLIT:100)  (VKD:56-184-164) (VKD:2-130-49) (SPLIT:100) (VKU:2-130-49) (VKU:56-184-164) 

The SPLITs are necessary to slow down the script, otherwise MSFS doesn't "get" the keyboard keys.

Is there a better way: probably, by using the camera variables from the MSFS SDK. But that process is quite involved. Camera events don't work, they have been INOP since the MSFS Alpha. 

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.