• 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.

[FSX] XML MouseAreas drives me nuts

Messages
19
[SOLVED] [FSX] XML MouseAreas drives me nuts

Hi all,

I have two main mouse areas, one for changing the altitude and one for simulating the B-key (barometic reset).
This is what's happening:
The above main mouse area works in FSX. The beneath main area is NOT working.
When I change the order, without changing anything, also the above main area works (thus the other one), the second NOT works in FSX!

This is driving me nuts! I tried everything, but can't find a solution.
See xml-code below.

Code:
    <MouseArea id="Altitude change">
        <FloatPosition>70.000,45.000</FloatPosition>
        <Size>100,14</Size>
        <MouseArea id="Decrement">
            <FloatPosition>0.000,0.000</FloatPosition>
            <Size>25,14</Size>
            <CursorType>DownArrow</CursorType>
            <MouseClick id="MouseClick">
                <Script>(L:AP ALT CHG RATE, number) 0 == if{ 100 } els{ 1000 } (&gt;K:AP_ALT_VAR_DEC)</Script>
                <ClickRepeat>True</ClickRepeat>
            </MouseClick>
        </MouseArea>
        <MouseArea id="Increment">
            <FloatPosition>13.000,0.000</FloatPosition>
            <Size>25,14</Size>
            <CursorType>UpArrow</CursorType>
            <MouseClick id="MouseClick">
                <Script>(L:AP ALT CHG RATE, number) 0 == if{ 100 } els{ 1000 } (&gt;K:AP_ALT_VAR_INC)</Script>
                <ClickRepeat>True</ClickRepeat>
            </MouseClick>
        </MouseArea>
        <Tooltip id="Tooltip">
            <DefaultId>TOOLTIPTEXT_AUTOPILOT_ALTITUDE_INDICATOR_FEET</DefaultId>
            <MetricId>TOOLTIPTEXT_AUTOPILOT_ALTITUDE_INDICATOR_METERS</MetricId>
            <EnglishId>TOOLTIPTEXT_AUTOPILOT_ALTITUDE_INDICATOR_FEET</EnglishId>
        </Tooltip>
    </MouseArea>
    <MouseArea id="MouseArea AltReset">
        <FloatPosition>120.000,9.000</FloatPosition>
        <Size>18,16</Size>
        <CursorType>Normal</CursorType>
        <MouseArea id="Reset">
            <FloatPosition>0.000,0.000</FloatPosition>
            <Size>18,16</Size>
            <CursorType>Hand</CursorType>
            <MouseClick id="MouseClick">
                <Script>(M:Event) &apos;LeftSingle&apos; scmp 0 == if{ 1 (&gt;K:BAROMETRIC) }
</Script>
            </MouseClick>
        </MouseArea>
    </MouseArea>

Please advise,

Kindly regards,
Jacob.
 
Last edited:
[solved]

At least I found it.
There can be only ONE overall mouse area.
Underneath you must define the other areas.
Works great now.
Regards,
Jacob.
 
Ahhhh.... Yep.


You can have two click versions in it, if that helps, like left click, right click. The right click being 'els{ do this } '


Sample

Code:
   <Area Left="701" Top="365" Right="745" Bottom="411">
            <Visible>(L:List_CascadeB,enum) 1 ==</Visible>
        <Tooltip>Tune</Tooltip>
         <Cursor Type="Hand"/>
        <Click Kind="LeftSingle + RightSingle">
          (M:Event) 'LeftSingle' scmp 0 ==  
             if{
                  (>K:NAV1_RADIO_FRACT_INC_CARRY)
                  1 (&gt;L:XMLSND61,enum)
                }
            els{
                  (>K:NAV1_RADIO_FRACT_DEC_CARRY)
                  1 (&gt;L:XMLSND65,enum)
                 }
        </Click>
      </Area>
 
Last edited:
Back
Top