GuOrg / Gu.Wpf.UiAutomation

MIT License
96 stars 17 forks source link

Mouse.Click does not work after Touch input. #72

Closed JohanLarsson closed 5 years ago

JohanLarsson commented 5 years ago
Mouse.Click(p);
Touch.Tap(p);
Mouse.Click(p); // the click after touch does not work.

When doing Touch.Tap() the mouse cursor disappears. Moving the physical mouse brings it back but I can't figure out a nice way to restore mouse after touch input.

JohanLarsson commented 5 years ago

Maybe https://blogs.msdn.microsoft.com/oldnewthing/20141022-00/?p=43793

JohanLarsson commented 5 years ago

https://docs.microsoft.com/en-us/windows/desktop/inputdev/about-mouse-input