Results 1 to 3 of 3
  1. #1
    DFTBA is offline Member
    Join Date
    Jun 2012
    Rep Power

    Default MouseListener for everything?

    I want to be able to have my program always know when the mouse is clicked. But all the examples I've seen only allow detecting clicks on a certain component. I want it to work so that all clicks, even on other things, for example clicking a link in a web browser, will register. Everything. Any help on this front?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

    Default Re: MouseListener for everything?

    So let me get this straight -- you want to capture *all* mouse input regardless if it involves your application or any other application that the computer is running, kind of a mouse-logger. If so, then Java is not the best tool for this as you would need to hook the mouse input on the platform level. Consider using C or C++ for this.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: MouseListener for everything?

    More importantly, why do you need a program with the capability to capture user activity in another program?

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Help with mouselistener
    By kastraki2000 in forum Java Applets
    Replies: 2
    Last Post: 04-30-2011, 03:56 PM
  2. can't get x and y from mouselistener
    By j2me64 in forum Java 2D
    Replies: 3
    Last Post: 04-24-2010, 04:57 PM
  3. MouseListener & GUI
    By Suurisa in forum New To Java
    Replies: 2
    Last Post: 10-27-2009, 12:52 AM
  4. i need help for MouseListener
    By sfaxianovic in forum New To Java
    Replies: 2
    Last Post: 08-21-2008, 03:30 AM
  5. MouseListener
    By Aswq in forum New To Java
    Replies: 12
    Last Post: 07-18-2008, 08:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts