CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2000
    Location
    Rostov-on-Don,Russia
    Posts
    46

    How to catch all mouse clicks (Red Hat Linux)

    Hi
    I need to catch all mouse clicks from other applications in Red Hat Linux (and count them). I'm new for Linux, so I'll be glad for any info, hints, suggestions, examples and so on. Thank you in advance.

  2. #2
    Join Date
    Nov 2000
    Location
    Rostov-on-Don,Russia
    Posts
    46
    nobody know how to catch them?

  3. #3
    Join Date
    Apr 1999
    Posts
    27,449
    Originally posted by Marvin
    nobody know how to catch them?
    Have you done a google search for your particular problem? You need to ask this question on a site dedicated to Linux/UNIX, most likely a UNIX related newsgroup on UseNet. They can answer your question quickly and thoroughly. You can access the newsgroups through google. If not, you can just do a google search for your particular problem, and you will probably find samples to help you.

    From the little reading that I've done, the mouse events are captured just like the keyboard in Linux. You open the port that the mouse is connected to (one of those /dev/whatever's), and read the bytes coming in. Sorry, that's all I'm even remotely familiar with. You can get the source code to the Emacs editor, and see how they handle the mouse events.

    Regards,

    Paul McKenzie

  4. #4
    Join Date
    Nov 2000
    Location
    Rostov-on-Don,Russia
    Posts
    46
    ok, thanks.
    I'v done some google search, and find some info. But I need some advices, which can prevent me from inventing thing people done before

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured