Answers for "c# postmessage mouse click"

C#
0

c# postmessage mouse click

[DllImport("user32.dll")]
static extern bool PostMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);

const int WM_LBUTTONDOWN = 0x0201;
const int WM_LBUTTONUP = 0x0202;

PostMessage(hWnd, WM_LBUTTONDOWN, 1, 0);
PostMessage(hWnd, WM_LBUTTONUP, 0, 0);
Posted by: Guest on August-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language