- Messages
- 10,057
- Country
-
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?
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....
// this is the mouse section bits...
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;
Code:
@g:messagesOff
2. I found this; No brackets. Can you do this without brackets?
Code:
(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 < <<<-- 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....
Code:
<!-- check MSG button -->
(@g:msgButtonDown) 0 != if{
(@g:msgButtonCount) ++ d (>@g:msgButtonCount) @MSGButtonDelay == if{ @MSGToggle }
}
// this is the mouse section bits...
Code:
(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 < if{ @MSGButton } } }