How to detect point behind background app?

Liang Chun Lin 1 Reputation point
2020-01-31T10:28:28.407+00:00

According " Handle pointer input " , there is a "PointerRoutedEventArgs e" can get a point object.

PointerPoint ptrPt = e.GetCurrentPoint(Target);

https://learn.microsoft.com/en-us/windows/uwp/design/input/handle-pointer-input#pointer-event-example

But I want to get the PointerPoint under the background app. I can't find useful information about such method / function to get the "PointerRoutedEventArgs" trigger for background app.

How could I get it ?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-02-03T00:18:40.203+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    For UWP applications, Pointer events can only be captured when the application is running in the foreground and the cursor is moved in the application.

    There is currently no API in UWP to capture pointer events outside the app.

    Thanks.

    0 comments No comments