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.

FS9 vs FSX Macro problem

Featured Replies

Dear all,

 

I'm having problems with Macro's. Format for FS9 2d cockpit works in FSX, but in FSX format it doesn't work. Can anyone help?

FS9 code 2d works in FSX:

<Macro Name="Increase">
(L:DataEntry, number) 10 * @1 + (>L:DataEntry, number) 
</Macro> 
<Macro Name="Decrease">
(L:DataEntry, number) 10 / int (>L:DataEntry, number) 
</Macro>

<!-- ********* 1 Digit  **********-->
<Area Left="36" Right="66" Top="53" Bottom="83">
<Visible>(L:ICP-MODE, enum) 0 != (L:ICP-MODE, enum) 7 != (L:ICP-MODE, enum) 13 != (L:ICP-SEC1, enum) 4 != ||</Visible>
<Cursor Type="Hand"/>
<Click>
@Increase(1)
</Click>
</Area> 

FSX code for 3d Virtual cockpit doesn't work:

<Macro Name="Increase">
<MacroValue>(L:DataEntry, number) 10 * @1 + (>L:DataEntry, number)</MacroValue> </Macro> 
  
<Macro Name="Decrease">
<MacroValue>(L:DataEntry, number) 10 / int (>L:DataEntry, number)</MacroValue> 
</Macro> 

<!-- ********* 1 Digit  **********--> 
<MouseArea>
<FloatPosition>107.000,102.000</FloatPosition>
<Size>95,94</Size>
<Visibility>(L:ICP-MODE, enum) 0 != (L:ICP-MODE, enum) 7 != (L:ICP-MODE, enum) 13 != (L:ICP-SEC1, enum) 4 != ||</Visibility>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<Script>@Increase(1)</Script>
<ClickType>LeftSingle</ClickType>
</MouseClick>
</MouseArea>

 

 

Thnx in advance!

 

Greetz Slammer

 

3 hours ago, Slammer said:

FSX code for 3d Virtual cockpit doesn't work:

Hi, 

Modeldef.xml file for 3D VC animations does not support macros.

Tom

 

  • Author

Tom,

 

Thanks for your answer, is there anyway around it to cope with the problem?

 

Greetz Slammer

I'm afraid not.

Some workaround might be done in parts callbacks, but I cannot think of anything  in Mouse scripts.

Tom

 

 

 

 

  • Moderator

It might be possible by putting the logic (and @Macros) in a 2d 'gauge' and use trigger L:Vars in the modeldef.xml file, but honestly it would likely be more trouble than it's worth...

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Archived

This topic is now archived and is closed to further replies.

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.