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.

landing light toggle switch with delay...(XML)

Featured Replies

I'm looking for a way to make a toggle switch hold a position fora second or two. For example I need a switch that extends and retracts a landing light. I want it to hold the Extend position for a few seconds after being clicked on (and turn the landing lights on) and then return to neutral. Then I'd like it to do the opposite when you click the landing light off the opposite for retract. Any help is greatly appreciated.Dave

Hi Dave,Here's an example of how you could realize it:(L:Landing Light Switch,enum)(G:Var2) (P:Local Time, seconds) < (L:Switch back,bool) 1 == && if{ 1 (>L:Landing Lights on,bool) 0 (>L:Landing Light Switch,enum) 0 (>L:Switch back,bool) }(G:Var3) (P:Local Time, seconds) < (L:Switch back2,bool) 1 == && if{ 0 (>L:Landing Lights on,bool) 0 (>L:Landing Light Switch,enum) 0 (>L:Switch back2,bool) }(L:Landing Lights on,bool) if{ (A:Light landing,bool) 0 == if{ (>K:LANDING_LIGHTS_TOGGLE) } } els{ (A:Light landing,bool) if{ (>K:LANDING_LIGHTS_TOGGLE) } }Landing Light Switch1 (>L:Landing Light Switch,enum) (P:Local Time, seconds) 2.0 + (>G:Var2) + 1 (>L:Switch back,bool)Click>Landing Light Switch2 (>L:Landing Light Switch,enum) (P:Local Time, seconds) 2.0 + (>G:Var3) + 1 (>L:Switch back2,bool)Click>Instead of the lot of L: variables, you could also use G: variables.Best RegardsMatthias

Wow! THanks Matthias!I'll give it a go. Dave

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.