MSG - Message plugin, by Matthew Augier ver 0.5beta

This official plugin allows other applications to send data to LCDC to be displayed. It can come in it 2 forms - TCP and Windows Messages (WM_CopyData)

TCP
---
Monitors port "1970" for data coming in that looks useable (see below)

Windows messages
----------------
Monitors the Windows Message "WM_COPYDATA" for data coming in that looks useable (see below)

Usable data
-----------
Simple send a string that has an identifier and a value after an equals sign. E.g. "XEV=Value" and you will then have in LCDC a new variable "MSGXEV" which will print "Beauty" when selected. The unique part of this is the identifiyer that will be used to call this varaible. If you need to update a varaible, simply update it using "XEV=New value". Numbers etc. can be accomodated as so "XEV=35.3"


Example
-------
To send a "message" in delphi is pretty simple (I'm sure this is not hard to change to other languages!) e.g.

Procedure SendMessageToLCDC(ThisMessage:String);
Var
	myData : tCopyDataStruct;
	wnd : hwnd;
Begin
	wnd := FindWindow(nil,'LCDC');
   	if wnd=0 then Begin
   		ShowMessage('Not found...');
       		Exit;
       		End;	
	myData.dwData := 0;
  	myData.lpData := PChar(ThisMessage);
  	myData.cbData := Length(ThisMessage)+1;
  	SendMessage(wnd, WM_COPYDATA, 0, LParam(@myData));	
End;

To send a "TCP" in delphi is pretty simple as well e.g. Have some form with a TCPClient on it, with the "RemotePort set to 1970"

Procedure SendTCPToLCDC(ThisMessage:String);
var
  I: Integer;
begin
 	try
    		if TcpClient1.Connect then TcpClient1.Sendln(ThisMessage);
  	  finally
    		TcpClient1.Disconnect;
  		end;
end;

