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

FS2004 FS9 GPS: @g:messagesOff

Hey all,

For the sake of understanding how the Message button works, I found some mysteries and wish to ask you all what or how this works.

The Message button in the 'fs9gps' system (same in FSX) has a timer built into it where if you hold the button down a moment, it turns off the Message window (bothersome blinker).

So I tried to desect it to see how it works. The Lady who created this gauge uses TONS of Macros. (Her name is Engauged). So I went through trying to decode the
layers of Macros, its all in Macros as though its written in a new language called Macro...

And I found that I couldnt find the roots of the components for the timer.

So I have a couple of questions;

1. Does anything starting with @ require a decoding of what it does? Usually a Macro is setup at the top of the page, but nothing defines this;
Is this a read like an L:Var? No definition at the top required? The new Macro language?

2. I found this; No brackets. Can you do this without brackets?
(M:Event) 'LeftSingle' scmp 0 == if{ (@g:msgButtonDown) 0 ==
                                                        if{ 1 (>@g:msgButtonDown)
                                                            0 (>@g:msgButtonCount) } }

(M:Event) 'Leave' scmp 0 == if{ (@g:msgButtonDown) 1 ==
                                                       if{ 0 (>@g:msgButtonDown)
                                                              (@g:msgButtonCount) @MSGButtonDelay &lt;    <<<--  check that out
                                                                      if{ @MSGButton } } }

Could that be a typo? Or can you write @g: things without brackets and they work?

This is how its written in the fs9gps code mouse section. I broke it up to how I write things to try to understand it better.

// this is in the Macro section....

        <!-- check MSG button -->
        (@g:msgButtonDown) 0 != if{
            (@g:msgButtonCount) ++ d (>@g:msgButtonCount) @MSGButtonDelay == if{ @MSGToggle }

// this is the mouse section bits...
            (M:Event) 'LeftSingle' scmp 0 == if{ (@g:msgButtonDown) 0 == if{ 1 (>@g:msgButtonDown) 0 (>@g:msgButtonCount) } }
                (M:Event) 'Leave' scmp 0 == if{ (@g:msgButtonDown) 1 == if{ 0 (>@g:msgButtonDown) (@g:msgButtonCount) @MSGButtonDelay &lt; if{ @MSGButton } } }


Resource contributor

In your "check this out" line notice that the one without brackets (actually parentheses) does not have a g: after the @. This means it's a "normal" macro, which do not need parentheses.
Ah so... Thanks Tom. I didnt even realize the g: was there. Shows how much I know about Macros. What does the g: signify? Is that talking to a C: gauge? Is it talking with the sim platform?

The mystery gets richer! Thanks Tom!

Looked up the C: in the FSX SDK, its for a custom calling. I noticed that the compass rose and the GPS map are custom draws. So this must all be done in the platform and C: links to these in-sim items. Thats all I can guess as the SDK is vague in only saying that C: is 'Custom' and gives a sample of how its written in XML.