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.

3-Way Toggle?

Featured Replies

I've learned how to do a toggle for a 2-way switch, is there a way to toggle a 3-way switch with a single button on my HOTAS? IE: the landing light in the Kodia has 0-off, 1-strobe, 2-On. Can I sequentially switch 0-1-2-1-0? 

I can simply switch between off and on with this: 

2·(L:SWS_LIGHTING_Switch_Light_Landing,·Number)·-·(>L:SWS_LIGHTING_Switch_Light_Landing,·Number)

but I don't know if there's a way to do a 3-way with a single button. 


Ohh, one more question I've had - Is there a way to use AAO to change settings in MSFS? Specifically, I'd like to toggle on/off the AI radio assist. 

Edited by bahnzo

  • Commercial Member
3 hours ago, bahnzo said:

but I don't know if there's a way to do a 3-way with a single button. 

Sure, this can be scripted too, using the "seq" or "iseq" operators. "seq" is used when you have a unique sequece where no value is repeated (0-1-2-3). "iseq" is for sequences where values are there more than once (0-1-2-1-0)

0·1·2·(L:SWS_LIGHTING_Switch_Light_Landing,·Number)·3·seq·(>L:SWS_LIGHTING_Switch_Light_Landing,·Number)
This will toggle 0-1-2-0-1-2-..

or
0·1·2·1·(L:SWS_LIGHTING_Switch_Light_Landing,·Number)·(L:SWS_LALISEL_IDX)·4·iseq·(>L:SWS_LIGHTING_Switch_Light_Landing,·Number)·(>L:SWS_LALISEL_IDX)
This will toggle 0-1-2-1-0-1-2-1-0..
"SWS_LALISEL_IDX" is an invented LVar, it contains the current index that the sequence is at. This must be named differently and uniquely for each iseq script.

3 hours ago, bahnzo said:

Is there a way to use AAO to change settings in MSFS?

No, that is not possible. Settings are not accessible from the outside, unless you find them in the SDK Events/Variables or figure out a CoherentGT command to make that change (AAO can send those). But in most cases, the simulation has to be stopped in order to make a settings change, they cannot be altered "on the fly" (pun intended).

That being said, you could create a mouse script in AAO that stops the simulation, calls up the settings menu, changes the setting, saves it and returns to the sim. 

Edited by Lorby_SI

LORBY-SI

  • Author
13 minutes ago, Lorby_SI said:

Sure, this can be scripted too, using the "seq" or "iseq" operators. "seq" is used when you have a unique sequece where no value is repeated (0-1-2-3). "iseq" is for sequences where values are there more than once (0-1-2-1-0)

0·1·2·(L:SWS_LIGHTING_Switch_Light_Landing,·Number)·3·seq·(>L:SWS_LIGHTING_Switch_Light_Landing,·Number)
This will toggle 0-1-2-0-1-2-..

or
0·1·2·1·(L:SWS_LIGHTING_Switch_Light_Landing,·Number)·(L:SWS_LALISEL_IDX)·4·iseq·(>L:SWS_LIGHTING_Switch_Light_Landing,·Number)·(>L:SWS_LALISEL_IDX)
This will toggle 0-1-2-1-0-1-2-1-0..
"SWS_LALISEL_IDX" is an invented LVar, it contains the current index that the sequence is at. This must be named differently and uniquely for each iseq script.

No, that is not possible. Settings are not accessible from the outside, unless you find them in the SDK Events/Variables or figure out a CoherentGT command to make that change (AAO can send those). But in most cases, the simulation has to be stopped in order to make a settings change, they cannot be altered "on the fly" (pun intended).

That being said, you could create a mouse script in AAO that stops the simulation, calls up the settings menu, changes the setting, saves it and returns to the sim. 

Thanks! I saw the "iseq" and wondered if that's what I needed, but wasn't sure how it would be scripted. Thanks for the info. 

As far as the settings....I figured it wasn't possible, but thought I'd ask. Thanks again 

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.