C# Sendmessage / Postmessage left click hold
<p>I'm intending to use sendmessage or postmessage to do a left click hold in C#.</p>

<p>The problem here is that even without sending a 0x202 to wMsg, the left click doesnt hold at all. </p>

<p>Does anyone know what's going on here?</p>

<pre><code>[DllImport("user32.dll", EntryPoint = "SendMessage", SetLastError = true)]
private static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);

public const int MK_LBUTTON = 0x0001;

public static void l_clickdown(IntPtr hWnd, int x, int y)
{

SendMessage(hWnd, (int)WMessages.WM_LBUTTONDOWN, (IntPtr)MK_LBUTTON, (IntPtr)((y &lt;&lt; 0x10) | x));
}
</code></pre>
