Hello, I fully emulate clicking LKM in the program, I repeat everything that is in spy ++, but the program does not respond to a click. The program is clean, there is nothing there, except for a couple of buttons for the test. Code:
PostMessage(handle, WM_MOUSEHOVER, (IntPtr)0, 0); SendMessage(handle, WM_SETCURSOR, handle, MakeLParam(18, WM_MOUSEMOVE)); SendMessage(handle, WM_SETCURSOR, handle, MakeLParam(1,WM_MOUSEMOVE)); SendMessage(handle, WM_MOUSEACTIVATE, handle, MakeLParam(1, WM_LBUTTONDOWN)); SendMessage(handle, WM_SETCURSOR, handle, MakeLParam(1, WM_LBUTTONDOWN)); PostMessage(handle, WM_LBUTTONDOWN, (IntPtr)0x0001, MakeLParam(x, y)); Thread.Sleep(5); PostMessage(handle, WM_LBUTTONUP, IntPtr.Zero, MakeLParam(x, y)); 

mouse_eventcyberforum.ru/win-api/thread420159.html . - nick_n_a