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.

MSFS event/var for flashlight in cockpit??

Featured Replies

Anyone? Looking for how to turn on and off the flashlight without using key bind. Have done the monitoring and some googling, but nothing shows up for me. Want to get a stream deck button that also work when MSFS is not in focus.

  • Commercial Member

I don't think there is one. I can only find the key action "KEY_COCKPIT_FLASHLIGHT_ONOFF", but I'm not sure that those actions can be triggered internally. The AAO InGame Panel can be used to do Coherent.call and Coherent.trigger from within an RPN script, but I can't find any example that would indicate those commands can be used for this.

Alternative 1: use the vJoy or ViGEm interfaces in AAO to send a virtual joystick button, and then bind the TOGGLE FLASHLIGHT to that input in MSFS.

Alternative 2: use a script in AAO for the virtual keyboard key instead of the direct button binding - one that forces the focus on MSFS first, then sends the key press. This one works for me:
(FOCUS:flightsimulator)·(SPLIT:100)·(VKD:56-184-164)·(VKD:38-166-76)·(SPLIT:100)·(VKU:38-166-76)·(VKU:56-184-164)
But the scan codes may be different on your computer. Open the RPN editor, input the (FOCUS:flightsimulator)·(SPLIT:100) then press "insert VKey" button followed by "Alt" followed by "L" (you have to press the keys of the combo one after the other, not at the same time) Press "Add". Now test then save the script. Assign the script to an AAO action on the StreamDeck as K: scriptgroup-scriptname

Edited by Lorby_SI

LORBY-SI

Archived

This topic is now archived and is closed to further replies.

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.