• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

XML Help needed

Messages
7
Country
austria
Hello,
I have an Aircraft in fs9 where some Gauges can only be operated by mouse clicks, keystrokes won´t work mostly.I´ve tried anything with FSUIPC include logging or offsets,-no way.
The Gauges are programmed in XML, so my idea theres surly a way to get them work, with standard FS key commands or normal Key strokes like Shift+F" or whatever in addition to the mouse clicks.

Can anyone help with it ?, im not a Programmer.
Which lines must be added or changed to get them work with keystrokes.
Far as i know there is a FS Key command in this XML "K:MIXTURE1_LEAN", but won´t work:confused:

<Gauge Name="Boostpump_L" Version="1.0">
<Element>
<Select>
<Value>(L:FUELBOOST_L,bool)</Value>
<Case Value="0">
<Image Name="Switch_3_Off.bmp" ImageSizes="37,62,0,0"/>
</Case>
<Case Value="1">
<Image Name="Switch_3_On.bmp" ImageSizes="37,62,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Select>
<Value>(L:FUELBOOST_L,bool) 0 == (A:TURB ENG1 N1, percent) 94 &gt; &amp;&amp; if{ (&gt;K:MIXTURE1_LEAN) }</Value>
</Select>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click>(L:FUELBOOST_L, bool) ! (&gt;L:FUELBOOST_L, bool)</Click>
</Mouse>
</Gauge>


Thanks,
Thomas:)
 
Yes - I know that you solved it, but please you can here speak how to solve it, because someother have the same Problem.

Thanks.
 
Yep,here it is (Many Thanks to some XML Expert ,who helped me!)

The Windows Key Codes are listed in Pete´s FSUIPC for Advanced Users doc.
Also very useful, the XML Tutorials from herehttp://www.fs2x.com/Tutorials.htm
<Gauge Name="FuelBoost-Sabb105.xml" Version="1.0">

<Keys>
<!-- 75 is K -->
<On Key="75"> <!-- thats K -->
(L:FUELBOOST_L,bool) ! (&gt;L:FUELBOOST_L,bool)
</On>
</Keys>

</Gauge>

works fine, dont forget to add an entry in the Panel cfg.for this new gauge !

Thomas
 
Last edited:
You could have simply added it the existing gauge:

Code:
<Gauge Name="Boostpump_L" Version="1.0">
  <Element>
    <Select>
      <Value>(L:FUELBOOST_L,bool)</Value>
      <Case Value="0">
        <Image Name="Switch_3_Off.bmp" ImageSizes="37,62,0,0"/>
      </Case>
      <Case Value="1">
        <Image Name="Switch_3_On.bmp" ImageSizes="37,62,0,0"/>
      </Case>
    </Select>
  </Element>
  <Element>
    <Select>
      <Value>(L:FUELBOOST_L,bool) 0 == (A:TURB ENG1 N1, percent) 94 &gt; &amp;&amp; if{ (&gt;K:MIXTURE1_LEAN) }</Value>
    </Select>
  </Element>
  <Mouse>
    <Cursor Type="Hand"/>
    <Click>(L:FUELBOOST_L, bool) ! (&gt;L:FUELBOOST_L, bool)</Click>
  </Mouse>
  <Keys>
    <!-- 75 is K -->
    <On Key="75">
      <!-- thats K -->
      (L:FUELBOOST_L,bool) ! (&gt;L:FUELBOOST_L,bool)
    </On>
  </Keys>
</Gauge>
 
Hello Bill,

first of all, thanks for reply !

This was also my first Version i´ve tried, but it doesn´t work, no idea why.
Someone told my it needs there maybe an extra Element section for the <Key On> entry.

The extra XML "Dummy"Gauge wit same <Key On> entrys works perfect.
Well, its OK so, but something strange.


Thomas:)
 
Back
Top