0

I am working on design for a screen video capture program in Java I already have what it takes to create the screenshots and save them with my previous question. Now as an added bonus I would like to know when the user clicks so I can add a visual indicator that makes it clear where the user clicked and that it was not just a mouseover.

Community
  • 1
  • 1
700 Software
  • 81,209
  • 77
  • 221
  • 333

1 Answers1

2

Not really possible in Java, which makes sense: OS routes the mouse event only once, and to the window that's supposed to receive it, so why should you be able to grab it? You could however write some system-level code on the level of OS handling of mouse events...

check this out: Detecting a Mouse Click Anywhere on Screen with Java

Community
  • 1
  • 1
iluxa
  • 6,883
  • 17
  • 34