Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-08-2012, 08:04 AM   #1
Registered: Jul 2012
Location: Banglore, INDIA
Distribution: Fedora-Core
Posts: 70

Rep: Reputation: 11
Unhappy command to perform the same action, that is done by middle-button of mouse???

Hello friends,

My most frequent event of the day is to collect the important concepts I have learnt , in to a text file. M tired off selecting the contents, opening the (txt file) every time and feeding it with the selected contents.

So, I taught to find myself a shortcut key, that calls a self written script which inturn does following tasks itself:

1> open '' writer
2> copy 'selected contents to the file'
3> ask user to enter filename, finally to save it.

I have set the shortcut key to open ''. But I have two problems now

1> how to find the command that gets executed to do the same action as 'the middle button of the mouse does (i.e pasting the selected components to the file)

2> And how to include the GUI shorcut keys (ex: alt+a, alt+z etc....) into the script file.

Help please....
Old 08-08-2012, 08:15 AM   #2
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
Why do you use an office suite for that task? Do you format the text? Any text editor is much more efficient for this task. The middle mouse button doesn't execute a command. It just creates an event. X server then handles that event and performs a certain action. I don't think you can do that with some kind of script.
Old 08-08-2012, 01:12 PM   #3
Registered: Jul 2012
Location: Banglore, INDIA
Distribution: Fedora-Core
Posts: 70

Original Poster
Rep: Reputation: 11
Ya obviously i want to format the contents as they might contain some diagrams in it. And any suggestions to handle the events that influence X server... B'Coz as long as i think, finally the text cmds are in action for any things that happen on system as an application.
Isn't that straight??????


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
how should i enable the middle button of 3-button mouse ?? b0nd Slackware 1 07-17-2006 03:46 AM
Does default middle button action in Firefox 1.5 annoy you? KimVette Linux - Software 2 12-08-2005 03:30 PM
How to perform an action (a command) on multiple files with the FOR loop? chun-mee Programming 4 08-23-2005 04:11 AM
Middle mouse button action TheJkWhoSaysNi Linux - Software 1 03-25-2005 09:38 PM
middle mouse button is paste.. but what if i dont have a mid mouse button? kublador Linux - Newbie 4 09-02-2003 09:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 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