Where was the screen clicked?

Is there a way to determine where the user clicks on the screen, without switching apps because they click in the area of some non-Xojo app window? Even knowing where the cursor last was on the screen before the clicked on app came forward would be useful.



Excellent. I could use that by say, pressing the X key on the keyboard when I wanted to capture the current mouse position on the screen. Is there some way to intercept the mouse-down event so that my app gets it rather than the system believing that I’m clicking on some other app to activate it?

Platform ?
basically you’d need to hook into the system’s event handling and passing mechanism just so you can monitor when ANY click happens (in your app or not)

Without declares or a plugin you cant do this

Certain things the OS and its event dispatch mechanism take care of before you ever see it