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.

Newbie XML syntax help

Featured Replies

I read your XML FAQ and found that I can make multiple assignments inside one click section:<Click> 0 (>K:...) 0 (>K:...) </Click>Now, what I really would like to do is<Click> <Value>(A:xxx,bool)</Value> <Case Value="0"> 0 (>K:...) </Case> <Case Value="1"> 0 (>K:...) 0 (>K:...) </Case></Click>Is that possible in some way?

Bert

  • Commercial Member
 <Mouse>	<Position X="0" Y="0"/>	<Size X="DEFINE WIDTH" Y="DEFINE HEIGHT"/>	<!--===============USE THIS TO REMIND YOURSELF WHAT THE CODE IS FOR===============-->   <Area Left="DEFINE LEFT BOUND WITHIN THE SIZE ABOVE OF CLICK AREA" Right="DEFINE RIGHT BOUND OF CLICK AREA" Top="DEFINE TOP OF CLICK AREA" Bottom="DEFINE BOTTOM OF CLICK AREA">   <Cursor Type="TYPE OF CURSOR HAND/UPARROW/DOWNARROW/ETC"/>		 <Click>DEFINE FUNCTION OF CLICK, GVAR/LVAR/CLICK EVENT/ETC</Click>   </Area> * CLOSE AREA*   <Area Left="490" Right="515" Top="101" Bottom="126">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-SEC-PUMP-1,bool) ! (>L:HYD-SYS-SEC-PUMP-1,bool)</Click>   </Area>   <Area Left="516" Right="541" Top="113" Bottom="138">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-AUX-PUMP-1,bool) ! (>L:HYD-SYS-AUX-PUMP-1,bool)</Click>   </Area>	<!--===============SYS-2-CNTRL===============-->   <Area Left="544" Right="569" Top="101" Bottom="126">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-PRI-PUMP-2,bool) ! (>L:HYD-SYS-PRI-PUMP-2,bool)</Click>   </Area>   <Area Left="571" Right="596" Top="101" Bottom="126">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-SEC-PUMP-2,bool) ! (>L:HYD-SYS-SEC-PUMP-2,bool)</Click>   </Area>   <Area Left="597" Right="622" Top="113" Bottom="138">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-AUX-PUMP-2,bool) ! (>L:HYD-SYS-AUX-PUMP-2,bool)</Click>   </Area>	<!--===============XFER-PUMP-CNTRL===============-->   <Area Left="605" Right="630" Top="165" Bottom="190">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-XFER-PUMP,bool) ! (>L:HYD-XFER-PUMP,bool)</Click>   </Area>	<!--===============SYS-3-CNTRL===============-->   <Area Left="625" Right="650" Top="101" Bottom="126">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-PRI-PUMP-3,bool) ! (>L:HYD-SYS-PRI-PUMP-3,bool)</Click>   </Area>   <Area Left="652" Right="677" Top="101" Bottom="126">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-SEC-PUMP-3,bool) ! (>L:HYD-SYS-SEC-PUMP-3,bool)</Click>   </Area>   <Area Left="678" Right="703" Top="113" Bottom="138">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-AUX-PUMP-3,bool) ! (>L:HYD-SYS-AUX-PUMP-3,bool)</Click>   </Area>	<!--===============SYS-4-CNTRL===============-->   <Area Left="708" Right="733" Top="101" Bottom="126">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-PRI-PUMP-4,bool) ! (>L:HYD-SYS-PRI-PUMP-4,bool)</Click>   </Area>   <Area Left="735" Right="760" Top="101" Bottom="126">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-SEC-PUMP-4,bool) ! (>L:HYD-SYS-SEC-PUMP-4,bool)</Click>   </Area>   <Area Left="761" Right="786" Top="113" Bottom="138">   <Cursor Type="Hand"/>		 <Click>6 (>L:C17, number) ! (L:HYD-SYS-AUX-PUMP-4,bool) ! (>L:HYD-SYS-AUX-PUMP-4,bool)</Click>   </Area> </Mouse>

The above is a fairly complex rendition of one of my own gauges, this uses the entire screen so the size I had it set to initially was the total size of the window I placed it on so it was 1024x768 then I defined each area within that which I would be able to click and what that click would do.You can also put Area's within areas, but the positioning is subsequently affected.I only edited the first area section to show you what it's for the rest is all unedited.Hope I've not overwhelmed you, good luck.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

  • Author
Hope I've not overwhelmed you, good luck.
Thanks, that was indeed more than I asked for, but it all helped in the end..Biggest help actually was the MS description and your example of what can be done!http://msdn.microsoft.com/en-us/library/cc...#mozTocId848419so I've got a working gauge with <Click> 0 (>K:xxx) (A:xxx) 0 == if{ 0 (>K:xxx) } </Click>simple if you know how! :(

Bert

Create an account or sign in to comment

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.