LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration