LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-27-2007, 08:07 PM   #1
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
alter middle click paste


How may I programatically (C/C++) alter the middle click, so when I middle click into a textbox it would say "Hello world". A similar thing happens when I select text using the mouse then I could middle click to past the text I have selected in say another program.

Also where should I be looking to learn more about how to do such things under linux.

Thanks.
 
Old 04-29-2007, 03:39 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
It depends on the library (pure Xlib, GTK, Qt etc). Which one you use?
 
Old 04-30-2007, 03:35 PM   #3
Four
Member
 
Registered: Aug 2005
Posts: 298

Original Poster
Rep: Reputation: 30
X11 so I guess the XLib library. Will it have the same effect accross other programs using different libraries?

Thank you
 
Old 04-30-2007, 03:43 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Well.. it depends on the fact how you define a textbox. It's comething different in Xlib, Qt and GTK. It'd be very hard for you to find out if mouse if over such field. I recommend you to start with Xlib and then think about other possibilities.

This link will be probably useful: http://users.actcom.co.il/~choo/lupg...ut_mouse_click
 
  


Reply


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
Gnome - Middle mouse is paste. Can it be remapped? TheJkWhoSaysNi Linux - Hardware 1 05-21-2011 04:46 AM
How to bind Middle click (paste selected text) to keyboard shortcut yozhhh Linux - General 4 10-05-2010 04:25 PM
middle click paste only works sometime and how to config other buttons? zeltak Linux - Software 3 02-16-2006 09:53 AM
help: cannot use middle mutton to paste parv Linux - Hardware 1 07-07-2005 09:18 PM
Disabling middle click paste. Pyroknight Linux - Software 6 04-20-2004 07:32 PM


All times are GMT -5. The time now is 07:34 AM.

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