title: Send message taken from Spy++
body: <p>I am trying to send a message to a game (to automate text commands), the problem is that I can't figure out how to use the information from spy++ to write a C# sendmessage function.</p>
  <p>I was able to use spy++ to get
  <code>00220540 S WM_SETCURSOR hwnd:0024052C nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE</code></p>
  <p>Could anyone provide a breakdown of what this means, and how to send the message to the game in c#?</p>
  <p>EDIT:</p>
  <p>I found out that I was looking at the wrong process. Instead of looking at the javaw.exe, I was looking at the actual game.</p>
  <p>Here is the code for pressing t:</p>
  <pre><code>&lt;00919&gt; 0038062A WM_INPUT nInputCode:RIM_INPUT hRawInput:189E0973
  &lt;00920&gt; 0024052 P WM_KEYUP nVirtKey:'T' cRepeat:1 ScanCode:14fExtended:0fAltDown:0fRepeat:1fUp:1
  </code></pre>