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.

asked Mar 9, 2011 at 19:39

1 Answer 1

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

answered Mar 9, 2011 at 19:45
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.