Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum
  1. Home
  2. Just Flight
  3. MSFS Products
  4. Black Square Add-Ons
  5. Baron Professional
  6. Momentary buttons powered by real buttons

Momentary buttons powered by real buttons

Scheduled Pinned Locked Moved Baron Professional
3 Posts 2 Posters 46 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Humbi
    wrote last edited by
    #1

    I try to address for example the Annunciator Test Button and the Surface Deice Switch with switches in my home cockpit (via Button Box Interface and Axis and Ohs). This switches are momentary. Is there a way to address the momentary buttons/switches via code that they remain activated as long as I press the real switch? I searched a lot inside the animation and other codes of the Baron but I couldn't get it to work.

    1 Reply Last reply
    0
    • Black SquareB Offline
      Black SquareB Offline
      Black Square
      Black Square Developer
      wrote last edited by
      #2

      If I'm understanding your question correctly, and you are using "L:var_AnnunciatorTestButton", for example, which returns immediately, try using "L:var_AnnunciatorTestButton_IsDown". That should work for most momentary L:Var switches/buttons in my aircraft.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Humbi
        wrote last edited by
        #3

        Yes it works, thank you, I don´t see that this var is also writeable. For the deice switch I think there is no var with "IsDown", but I found a working solution like this to sync the behaviour with my switch as long as it is held for AUTO for example:
        0 (>L:var_surfaceDeiceSwitch, bool)
        15 (>L:var_surfaceDeiceTimer, Number)
        1 - (>L:var_surfaceDeiceSwitch, bool)

        And at the KNS81 for the waypoint in use and the navigation mode I found no vars but I have pulled them out in KNS81.js with SetSimVarValue and my own vars. If I press my real buttons for the KNS81 it would be nice if I can hear the buttons working and see their animation (RNAV USE, RNAV DATA and so on) in the aircraft like the RNAV-CHECK button (L:var_RNAV_CHECKMODE_IsDown) but I found no variables.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users