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 2024. Grand Caravan 208B | Maxflow | Three way Hold

Featured Replies

MSFS 2024. Grand Caravan 208B (Not the BKSQ version)

The max flow switch has three positions (IE:DEICE_WINDSHIELD_1).
1 = off - Middle
0 = Fluid is directed to the AirFrame - Upper
2 = Fluid is directed to the WindShield - Bottom

https://imgur.com/413O4z9

I have a Stream Deck. I want a one or two rpn scripts that can be used on 1 or two stream deck buttons to simiulate fluid direction to AirFrame or WindShield. Manaully this is achived by using the mouse left button and holding the switch button.

I tried using Google AI and Grok to find a solution but didnt get anywhere in addition to using sleep and wait. Is this even possible using AAO+StreamDeck?

The behaviour code:

(L:XMLVAR_DeiceWindshield_1) (>O:PreviousPos) (M:InputType) 1 == if { } els { } (M:Event) 'Lock' scmi 0 == if { (M:RelativeY) (>O:OldMouseY) 0 (>O:_IsLimited) } els { (M:Event) 'WheelUp' scmi 0 == if { 1 sp1 g1 } els { (M:Event) 'WheelDown' scmi 0 == if { 1 sp1 g2 } els { (M:Event) 'LeftDrag' scmi 0 == if { (O:_ResetDragTime) (E:SIMULATION TIME, second) < if { 0 (>O:_IsLimited) } (E:SIMULATION TIME, second) 0.05 0.10 (M:InputType) 1 == ? + (>O:_ResetDragTime) (O:_IsLimited) if { (M:RelativeY) (>O:OldMouseY) } els { (O:OldMouseY) (M:RelativeY) - abs 0.05 0.001 (M:InputType) 1 == ? > if { 1 (>O:_IsLimited) (O:OldMouseY) sp0 (M:RelativeY) (>O:OldMouseY) (M:RelativeY) l0 > if { g1 } els { g2 } } } } } els { (M:Event) 'Unlock' scmi 0 == if { g3 } } } } quit :1 (O:XMLVAR_DEICE_Switch_Windshield_Animation_Target_Position) (O:XMLVAR_DEICE_Switch_Windshield_Animation_Position) == if { (L:XMLVAR_DeiceWindshield_1) 2 == if { 1 if { 1 (>L:XMLVAR_DeiceWindshield_1) (>B:DEICE_Windshield_1_Rest) } } els { (L:XMLVAR_DeiceWindshield_1) 1 == if { 1 if { 0 (>L:XMLVAR_DeiceWindshield_1) (>B:DEICE_Windshield_1_Airframe) } } } 0.1 0 > if { (E:SIMULATION TIME, seconds) 0.1 + (>O:XMLVAR_SwitchStateTimer) (E:SIMULATION TIME, seconds) 0.5 + (>O:XMLVAR_RepeatStartTime) } els { 0 (>O:XMLVAR_SwitchStateTimer) } 0 1 11 ? (>O:XMLVAR_MomentarySwitch_IsHeld) } } } quit :2 (O:XMLVAR_DEICE_Switch_Windshield_Animation_Target_Position) (O:XMLVAR_DEICE_Switch_Windshield_Animation_Position) == if { (L:XMLVAR_DeiceWindshield_1) 0 == if { 1 if { 1 (>L:XMLVAR_DeiceWindshield_1) (>B:DEICE_Windshield_1_Rest) } } els { (L:XMLVAR_DeiceWindshield_1) 1 == if { 1 if { 2 (>L:XMLVAR_DeiceWindshield_1) (>B:DEICE_Windshield_1_Windshield) } } } 0.1 0 > if { (E:SIMULATION TIME, seconds) 0.1 + (>O:XMLVAR_SwitchStateTimer) (E:SIMULATION TIME, seconds) 0.5 + (>O:XMLVAR_RepeatStartTime) } els { 0 (>O:XMLVAR_SwitchStateTimer) } 0 1 11 ? (>O:XMLVAR_MomentarySwitch_IsHeld) } } } quit :3 0 (>O:XMLVAR_MomentarySwitch_IsHeld) quit (L:XMLVAR_DeiceWindshield_1) 100 * (>O:XMLVAR_DEICE_Switch_Windshield_Animation_Position) (L:XMLVAR_DeiceWindshield_1) 100 * (>O:XMLVAR_DEICE_Switch_Windshield_Animation_Target_Position)

Thanks.

 

Edited by london-simmer

  • Commercial Member
8 hours ago, london-simmer said:

Is this even possible using AAO+StreamDeck?

Don't think so, sorry. Not yet anyway. In the next SU of MSFS 2024 it will be possible to acccess I: and O: variables. With that, there is a chance.

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.