Click to See Complete Forum and Search --> : How to catch all mouse clicks (Red Hat Linux)
Marvin
January 13th, 2003, 04:33 AM
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.
Marvin
January 15th, 2003, 11:44 AM
nobody know how to catch them?
Paul McKenzie
January 15th, 2003, 01:08 PM
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
Marvin
January 16th, 2003, 12:30 AM
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 :)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.