Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-05-2015, 11:50 PM   #1
LQ Newbie
Registered: Jun 2013
Distribution: Whatever works for the job.
Posts: 25

Rep: Reputation: Disabled
Programmatically respond to mouse clicks

I'm never sure what questions need disclaimers so I'll lean to the side of caution.

Any answers I receive will be used only on systems for which I have permission for the associated task.

I made a joke about adding a program to my dad's computer so that every time he clicks it plays "Ooh yeah click me like that" This quickly turned into permission to do so with one of my sibling very excited about it.

Language independent are there any hooks I can use to respond to mouse clicks even if I don't have the foreground?

Debian, the one right before steam support (Sorry I'm not more specific but the room the tower is in is occupied ATM)
Full root privileges, willing to learn what I need in pretty much any languages to do this as long as it can be done out of kernel space.

3-4 google searches and all I can find is sources such as
Which while nice and bookmarked(now) not quite what I need
Old 02-06-2015, 12:14 AM   #2
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,259

Rep: Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419Reputation: 7419
here is an old thread about that, you can find some tips:
Old 02-06-2015, 12:26 AM   #3
LQ Newbie
Registered: Jun 2013
Distribution: Whatever works for the job.
Posts: 25

Original Poster
Rep: Reputation: Disabled
Darn, looking at that the only resources I can make sense of are the game libraries which unfortunately aren't what I need. Good to know about for future reference though.
What I need is some sort of event pass that tells listening programs hey the mouse was clicked you got anything? My biggest worry is that this could only be done by hand modifying the kernel because I can see a lot of security holes in it.
Still thanks for the read and your time.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mouse clicks lost CollieJim Ubuntu 1 04-06-2014 02:01 AM
Mouse not responding to clicks c0smic Fedora 1 05-08-2011 06:31 AM
random mouse clicks SuSE 9.3 MichaelLange Linux - Hardware 3 03-09-2006 05:10 PM
How to capture clicks from mouse to a file floydigus Linux - Hardware 2 07-02-2005 01:40 AM
Mouse pointer does not respond to mouse after boot??? nilsamon Fedora 2 03-12-2004 11:49 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration