I'm having a funny ol' time with PostMessage, wondering if anybody could enlighten me.
The method below processes the first left click but not the second, I did a bit of messing around and found that using a MessageBox and hitting OK even instantly provides the delay/release or whatever it is that's needed to make the second left click process.
public void MouseClick(IntPtr handle)
{
PostMessage(handle, (uint)WMessages.WM_LBUTTONDOWN, 0, MAKELPARAM(521, 147));
PostMessage(handle, (uint)WMessages.WM_LBUTTONUP, 0, MAKELPARAM(521, 147));
//MessageBox.Show("WAITING...");
PostMessage(handle, (uint)WMessages.WM_LBUTTONDOWN, 0, MAKELPARAM(675, 527));
PostMessage(handle, (uint)WMessages.WM_LBUTTONUP, 0, MAKELPARAM(675, 527));
}
Thanks in advance.