Hi, my name is Sergey and i have a question. I have Window 10
I have a code like this:
WinAPI.SetCursorPos((Int32)(start.X), (Int32)(start.Y + 1)); Wait(); WinAPI.SetCursorPos((Int32)(end.X), (Int32)(end.Y)); Wait();
start and end are points above wpf control.
Wait method look like this:
and used to pump message queue which causes to handle mouse move event of control for each SetCursorPos call.public static void Wait() { DispatcherPriority priority = DispatcherPriority.ContextIdle;
EnumerateWindows().ToList().ForEach(wnd => wnd.Dispatcher.Invoke(() => { }, priority)); }
Since windows 10 update 1803 SetCursorPos does not fire mouse move event and it handler does not call. For Windows 10 version 1703 works properly.
Does exist some fixes of this problem?