Sorry for failing to add the versions of everything, they are as follows:
FSUIPCClient.dll (the .NET DLL): 1.1.2397.13 I saw on this forum a supposed new version of this DLL which I have downloaded but will not incorporate into this particular program. I am working on a follow up program that I will convert to using the new version of the DLL.
FS: Testing FSX
FSUIPC (the FS module DLL that we pay for): current versions
I am not reading the message, my program writes the message to FS. I don't know all the different ways I tried to tell the process to display for only 5 seconds but they are all variations of "5", "+5", I've tried writing to 32FA, the control offset, before writing to 3380, the message text offset. I've tried many different things where there should be only 1 correct answer which is what I'm trying to figure out. I've tried changing to write "1" (which is intended as display message for one second) to the display text control and FSInterrogate shows the value of 32FA as 48 seconds. Programmatically, this is what my code looks like:
DisplayMessage->Value = "Some Text Here To Display On FS Screen";
DisplayMessageControl->Value = "5";
FSUIPCConnection::Process("Display Message");
FSUIPCConnection::Process("Display Control");
It's the DisplayMessageControl->Value = "5"; that is giving me the problem because the message itself appears without issue.
In the document that comes in the FSUIPC SDK the description for offset 32FA is as follows:
"Text display control word. You can display messages from an external program just like an Adventure. Write the message as a zero-terminating string to offset 3380 (see below), subject tto the maximum of 128 characters including the zero terminator, then write a number to this offset, 32FA, as follows:
0 display till replaced
+n display for n seconds, or until replaced [this is what I'm trying to do]
-l display and scroll, or until replaced
-n display and scroll, or for n seconds, or until replaced
..."
So, the real question is, what should the line DisplayMessageControl->Value = "5"; look like (particularly after the =) in order to obtain control of this feature?
Thanks again!
Justin