• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Need help programming gauge

Mick

SOH-CM-2025
David's unable to log in here for some reason, so he asked me to post a question about how to program a gauge he's working on for the upcoming Temco Pinto. I'll copy any replies and e-mail them to him.

Here's David's question:

"I need to know the code for creating a FS9 XML switch that will stay on as long as I am pressing the mouse button and the second I release the mouse button it turns off. I have found one that works like I need in FSX for the c208B panel called "lamp_test_switch," but due to the different coding used it FSX it doesn't work in FS9, and I don't know how to convert it, or even if it can be converted."
 
try :-
Code:
  <Mouse>
        <Tooltip>Test.</Tooltip>
        <Cursor Type="Hand" />
        <Click Kind="LeftSingle+LeftRelease">
            (M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:yourvariable,bool) }
            (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:yourvariable,bool) }
        </Click>
    </Mouse>
Ted
 
Back
Top