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 and Oh's Script two Events at the same time

Featured Replies

Can any forum member with Axis and Ohs skills (be so kind to ) help me to switch on and off the ASOSO ATRs Landing lights via a single Stream Deck or Bravo throttle quadrant button (I only need the script not help to bind it to the buttons)?

There are two landing light switches in the ATR (Left and Right). I allready researched and found the effective Events:

MSFS_Input_Events: LIGHTING_LIGHTING_Switch_Light_Landing_1 1 (IE:)

 and

MSFS_Input_Events: LIGHTING_LIGHTING_Switch_Light_Landing_2 1 (IE:)

either with parameter 1 = on and 0 = off

I only want to use one event button - so I need a script, which triggers two events at the same time (what unfortunately pushes my own limits).

So my question: What is the script code for realizing these two above events together - i.e. "ATR_both_landing_lights_on" and "ATR_both_landing_lights_off"?

 

 

Intel i9-14900K, 64 GB RAM, MB ASUS ROG STRIX 790-E, NVIDIA GTX 4080 Super 16GB, 2 x 2 TB M.2, BE QUIET Pure Power 12 M 1000W, BE QUIET Silent Loop 3 360 AIO, BE QUIET Dark Base Pro 901, 4K-Monitor, Honeycomb Bravo Throttle Quadrant, Thrustmaster TCA Yoke, Streamdeck XL, Thrustmaster T.16000M Joystick, Saitek Rudder Pedals, WINCTRL PAP3, WINCTRL 3M PDC, JetMax 737 home cockpi

  • Commercial Member

You just write one event after the other. There is no restriction on the length of RPN scripts (except practicality). 

On-script:

1 (>IE:LIGHTING_LIGHTING_Switch_Light_Landing_1) 1 (>IE:LIGHTING_LIGHTING_Switch_Light_Landing_2)

Off script:

0 (>IE:LIGHTING_LIGHTING_Switch_Light_Landing_1) 0 (>IE:LIGHTING_LIGHTING_Switch_Light_Landing_2)

Toggle script

1 (IE:LIGHTING_LIGHTING_Switch_Light_Landing_1) - (>IE:LIGHTING_LIGHTING_Switch_Light_Landing_1) 1 (IE:LIGHTING_LIGHTING_Switch_Light_Landing_2) - (>IE:LIGHTING_LIGHTING_Switch_Light_Landing_2)

 

 

Edited by Lorby_SI

LORBY-SI

  • Commercial Member

Btw. there is no need for any scripts. You can assign the same button multiple times. In AAO there is no rule that you could assign only one thing to a button at the same time. Just create one assignment for the first IE, then a second assignment to the same button with the other IE.

LORBY-SI

  • Author

Help from the Master himsellf 🙂 - thats great - thank you very much!

To assign multiple things to a single button - I did not know that - that is indeed  the easiest way.

Intel i9-14900K, 64 GB RAM, MB ASUS ROG STRIX 790-E, NVIDIA GTX 4080 Super 16GB, 2 x 2 TB M.2, BE QUIET Pure Power 12 M 1000W, BE QUIET Silent Loop 3 360 AIO, BE QUIET Dark Base Pro 901, 4K-Monitor, Honeycomb Bravo Throttle Quadrant, Thrustmaster TCA Yoke, Streamdeck XL, Thrustmaster T.16000M Joystick, Saitek Rudder Pedals, WINCTRL PAP3, WINCTRL 3M PDC, JetMax 737 home cockpi

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.