title: Sending a chat message to a LAN game with Python
body: <p>This might be a confusing question...
  But take for example the game Battlefield2.
  Is it in any way possible to send chat messages to the game through Python? The reason I am asking this is because I've seen messages appear from no where on various games, and want to know if it's possible. Now, the way I understand a packet is like this...</p>
  
  <p>It's a small collection of data with a sender IP address and a recipient IP address. Contained within the packet is the data. So, in theory... If the 'packet name' for the chat message is like:</p>
  
  <pre><code>SRV_CHAT|&lt;Sender_Info&gt;|&lt;Message Text&gt;
  (For example): SRV_CHAT|10.1.1.5,Player1|hello, how's the game?
  </code></pre>
  
  <p>Does that mean that I can create a Python script to send my own message to a LAN game and have it appear? If it is possible, how can I go about dissecting the actual packet information in order to discover any parameters? What I mean by this, is finding that data contained in there...</p>
  
  <p>It's just a thought and a question I've had for a long time.</p>
  
  <p>Thanks! </p>